1. Error: file name for open() is too long

Hello all,

using exw.exe 3.1.1 on Windows XP, a program crashed with the error message:
   file name for open() is too long 

According to my tests, complete file names (including path and extension)
up to a length of 254 characters are working fine. With names longer than
254 characters I get this error. Can someone confirm this?

What are the maximum possible lengths of complete file names on modern
Windows systems, and on Linux/FreeBSD? Is it possible to change the Eu
interpreters/translators, so that file names with the maximum length on
the concerning OS can be used with Eu programs?

Regards,
   Juergen

new topic     » topic index » view message » categorize

2. Re: Error: file name for open() is too long

Juergen Luethje wrote:
> 
> Hello all,
> 
> using exw.exe 3.1.1 on Windows XP, a program crashed with the error message:
>    file name for open() is too long 
> 

I think that all Windows, before Vista, had a hardcoded operating system limit
of 255 characters. I think Vista did away with this limit and Unix has a limit of
at least 5000 characters.

What, out of curiosity, is the path/file you are trying and why does it have to
be so long?


-- 
Derek Parnell
Melbourne, Australia
Skype name: derek.j.parnell

new topic     » goto parent     » topic index » view message » categorize

3. Re: Error: file name for open() is too long

Derek Parnell wrote:

> Juergen Luethje wrote:
> > 
> > Hello all,
> > 
> > using exw.exe 3.1.1 on Windows XP, a program crashed with the error message:
> >    file name for open() is too long 
> > 
> 
> I think that all Windows, before Vista, had a hardcoded operating system limit
> of 255 characters.

Hmm.. the file and the long name does exist on Windows (FAT 32, btw.),
and I can e.g. copy it using Total Commander, or open it using Firefox
(it's a HTML file). So I hardly can imagine that this limit is built-in
in Windows XP.

> I think Vista did away with this limit and Unix has a limit
> of at least 5000 characters.

Very good!

> What, out of curiosity, is the path/file you are trying

Not only the file itself, but even its name has some private content,
so I don't actually want to publish it. If this really is a problem with
the Euphoria interpreter/translator, other people will be able to confirm
it with other files anyway.

> and why does it have to be so long?

It doesn't have to, I didn't make it deliberately so long. Just by
organizing my files in several subdirectories, now there is this
long path & file name.

Regards,
   Juergen

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu