delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/09/23/19:30:30

From: Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: _fixpath bug?
Organization: Pin Eight Software http://pineight.8m.com/
Message-ID: <qkeqssoqja8uno1ldaq775lfgr20englsh@4ax.com>
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
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.

-- 
<O
( \   GNOME vs. KDE: the game!
 X    http://pineight.8m.com/nes.htm

This is McAfee VirusScan. Add these two lines to your signature to
prevent the spread of signature viruses.  http://www.mcafee.com/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019