Accessing filenames with different charsets
Ville Herva
vherva@niksula.hut.fi
Wed Jul 3 04:00:00 GMT 2002
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.
True.
> 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 --
v@iki.fi
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list