Mail Archives: djgpp/2000/09/23/18:14:57
> From: dcasale AT my-deja DOT com
> Newsgroups: comp.os.msdos.djgpp
> Date: Wed, 20 Sep 2000 20:11:13 GMT
> >
> > While writing 3-to-5 lines function to do that does not
> > seem very hard, but why do you want to do it in the first
> > place? All library functions understand both cases.
> >
> > Laurynas
>
> Because my code parses pathnames manually, since it requires proper
> multibyte handling of pathnames containing characters with a backslash
> as the second byte. I don't think dirname and basename are multibyte-
> enabled, at least not from the code snippet I was able to find in the
> gcc source.
DJGPP library does not support multibyte characters (except trivial
ones, which simply extend ASCII characters with null bytes). However,
it does not support non-ASCII characters in file names at all. So you
will have much more trouble with multibyte characters in filenames
down the road, than just backslashes in _fixpath.
If you are up to this, it will be probably easier to add UTF-8 support
to file-name- and ctype-related functions than hack around every
library function. I'm quite sure the library will fight you back on
this one, since other functions also attach special meaning to slash
and backslash.
If you do decide to add UTF-8 to DJGPP, we will be delighted to accept
your patches. Thanks in advance.
- Raw text -