delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/09/20/18:05:21

From: dcasale AT my-deja DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: Re: _fixpath bug?
Date: Wed, 20 Sep 2000 20:17:00 GMT
Organization: Deja.com - Before you buy.
Lines: 51
Message-ID: <8qb5v5$gm5$1@nnrp1.deja.com>
References: <8q8ugf$t6d$1 AT nnrp1 DOT deja DOT com> <tathss002t13qf03ol5chdijdklf8s1sk1 AT 4ax DOT com>
NNTP-Posting-Host: 199.249.234.30
X-Article-Creation-Date: Wed Sep 20 20:17:00 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 <tathss002t13qf03ol5chdijdklf8s1sk1 AT 4ax DOT com>,
  Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p> wrote:
> 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.

Sort of.  It backs up the data along with long filenames, etc...  ^^;;;

> >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'd rather not do that because I'm trying to maintain cross-compiler
compatibility for the moment.  I ended up fixing up the output of
_fixpath instead.  I might make the changeover later, tho.

> >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. ;-)

Umm...yeah.  Woops.  ^^;;;;

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

It's not designed to be portable, actually.  It's designed to back up
WinBlows OS installations.  ;-)

Damon Casale, damon AT redshift DOT com
Portable?  In the 80's, "portable" meant a 30-pound "suitcase" computer.


Sent via Deja.com http://www.deja.com/
Before you buy.

- Raw text -


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