Mail Archives: djgpp/2000/09/19/20:15:26
From: | damon AT redshift DOT com
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | _fixpath bug?
|
Date: | Tue, 19 Sep 2000 23:57:13 GMT
|
Organization: | Deja.com - Before you buy.
|
Lines: | 31
|
Message-ID: | <8q8ugf$t6d$1@nnrp1.deja.com>
|
NNTP-Posting-Host: | 199.249.234.30
|
X-Article-Creation-Date: | Tue Sep 19 23:57:13 2000 GMT
|
X-Http-User-Agent: | Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)
|
X-Http-Proxy: | 1.1 x69.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
|
I'm working on a proprietary file compression program for an emergency
OS recovery package, 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.
I understand that _fixpath, by default, returns lower case paths with
UNIX-style (forward) slashes. To change this behavior, one should do
something like the following:
#include <crt0.h>
int main()
{
_crt0_startup_flags = _CRT0_FLAG_PRESERVE_UPPER_CASE |
_CRT0_FLAG_USE_DOS_SLASHES |
_CRT0_FLAG_PRESERVE_FILENAME_CASE;
... (etc.)
}
However, I've done this and _fixpath *still* returns paths (albeit
uppercase) with forward slashes. What gives? Is this a bug?
Thanks...
Damon Casale, damon AT redshift DOT com
"Port" is a four letter word...
Sent via Deja.com http://www.deja.com/
Before you buy.
- Raw text -