From: dcasale AT my-deja DOT com Newsgroups: comp.os.msdos.djgpp Subject: Re: _fixpath bug? Date: Wed, 20 Sep 2000 20:11:13 GMT Organization: Deja.com - Before you buy. Lines: 24 Message-ID: <8qb5ke$g7c$1@nnrp1.deja.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> NNTP-Posting-Host: 199.249.234.30 X-Article-Creation-Date: Wed Sep 20 20:11:13 2000 GMT X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt) X-Http-Proxy: 1.1 x73.deja.com:80 (Squid/1.1.22) for client 199.249.234.30 X-MyDeja-Info: XMYDJUIDdcasale To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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. 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. Damon Casale, damon AT redshift DOT com Well, at least the code works now... Sent via Deja.com http://www.deja.com/ Before you buy.