delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/09/20/17:50:15

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: <tathss002t13qf03ol5chdijdklf8s1sk1@4ax.com>
References: <8q8ugf$t6d$1 AT nnrp1 DOT deja DOT com>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
Lines: 37
X-Trace: /bGnt9Kqd99nUbinS/sexr+EJYyVehosVg7Noi2XfgMFlR7P5ePD0Yk0cOx9sZanxj29UgZWJt1n!AyxFVhAlFykjaWE1f5FiTwaVmZxeUTBHD8tXNIw3NM/QIvK0LDkuVj71q9ERMGbIhpOvJhVld1C1!HiRiMQ==
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: Wed, 20 Sep 2000 17:42:59 GMT
Distribution: world
Date: Wed, 20 Sep 2000 17:42:59 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Tue, 19 Sep 2000 23:57:13 GMT, damon AT redshift DOT com wrote:

>I'm working on a proprietary file compression program

Why not just use zlib or bzip2 (non-copylefted free software lossless
data compression libraries)?
  http://www.info-zip.org/pub/infozip/zlib/
  http://sources.redhat.com/bzip2/

>for an emergency OS recovery package

Oh, a backup program.  Continue.

>and I've run across a problem with _fixpath.  I'm porting my code from
>MSVC 1.52 and I'd rather not have to change all of my backslashes to
>forward slashes in the directory parsing code unless I absolutely have to.

search for \\ and replace with /
is it that tough?

>I understand that _fixpath, by default, returns lower case paths with
>UNIX-style (forward) slashes.

short answer: It's not a bug; it's a feature. ;-)
long answer:
This type of behavior fits into the UNIX framework around which the C
language was built (even though _fixpath() itself isn't defined in the
POSIX standard) and makes your backup program a bit more portable to
other systems.

-- 
<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