From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: _fixpath bug? Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: <8q8ugf$t6d$1 AT nnrp1 DOT deja DOT com> <8qa0im$e31$1 AT antares DOT lu DOT erisoft DOT se> <8qasct$427$1 AT nnrp1 DOT deja DOT com> <39C901A4 DOT 6CAF5846 AT softhome DOT net> <8qb5ke$g7c$1 AT nnrp1 DOT deja DOT com> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 30 X-Trace: /ba9QcUQgUXXIaXlhDSJ6xGx8J7d+pN+EsBiKhOJDEVaWs1Cu4/GNnKzOPce5bEh9UCrWR5mKpXe!CLwrjRQifKaU2a33tR7W+XDYePavo6hY+CPKJ1uD6CAGZkegw6zA08ZBJwqcMGQmSfdlKWR8FSWn!hnchWg== X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Sat, 23 Sep 2000 23:22:43 GMT Distribution: world Date: Sat, 23 Sep 2000 23:22:43 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Wed, 20 Sep 2000 20:11:13 GMT, dcasale AT my-deja DOT com wrote: >In article <39C901A4 DOT 6CAF5846 AT softhome DOT net>, > djgpp AT delorie DOT com wrote: >> dcasale AT my-deja DOT com wrote: >> > I guess I have to change the forward slashes to backslashes in the >> > output from _fixpath on my own, then. *shrugs* >> >> 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. The UTF-8 encoding guarantees that no byte of a multibyte character will have the same encoding as a Basic Latin (ASCII) character. If (as Eli suggested) you start to implement UTF-8 support in libc, you won't have any problem with embedded slashes. --