This is the mail archive of the
mailing list for the Cygwin project.
Re: Accessing filenames with different charsets
On Wed, Jul 03, 2002 at 11:30:19AM +0100, you [Chris January] wrote:
> Since most programs internally allocate a buffer of size MAX_PATH or
> PATH_MAX, they won't have enough room to store the full filename.
> Tt would certainly be possible to support this if a system call was made
> with a long filename,
Problem here is is that you can't get the long filename from readdir() and
friends if the d_name field is limited. So I imagine things like tar and
rsync wouldn't work anyway.
> but that would mean replacing all statically allocated path buffers (e.g.
> char buf[MAX_PATH]) with alloca (e.g. char
> *buf = alloca (strlen(inbuf) + margin)) which is more than trivial.
Yes, sounds quite tedious.
In this case one could imagine using the 8.3 name...
-- v --
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html