Mail Archives: djgpp/2000/09/20/13:45:20.1
From: | dcasale AT my-deja DOT com
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: _fixpath bug?
|
Date: | Wed, 20 Sep 2000 17:33:18 GMT
|
Organization: | Deja.com - Before you buy.
|
Lines: | 41
|
Message-ID: | <8qasct$427$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>
|
NNTP-Posting-Host: | 199.249.234.30
|
X-Article-Creation-Date: | Wed Sep 20 17:33:18 2000 GMT
|
X-Http-User-Agent: | Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)
|
X-Http-Proxy: | 1.1 x52.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 <8qa0im$e31$1 AT antares DOT lu DOT erisoft DOT se>,
eplmst AT lu DOT erisoft DOT se (Martin Stromberg) wrote:
> damon AT redshift DOT com wrote:
> : 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?
>
> Why do you think _CRT0_FLAG_USE_DOS_SLASHES will make _fixpath() use
> backslashes? The documentation says:
>
> `_CRT0_FLAG_USE_DOS_SLASHES'
> If set, reverse slashes (dos-style) are preserved in `argv[0]'.
> If not set, all reverse slashes are replaced with unix-style
> slashes.
>
> Where does it say _fixpath() will be affected?
Woops. I didn't read that very carefully, did I? ^^;;
I guess I have to change the forward slashes to backslashes in the
output from _fixpath on my own, then. *shrugs*
Damon Casale, damon AT redshift DOT com
But that's not what the documentation said last night! Really!
Sent via Deja.com http://www.deja.com/
Before you buy.
- Raw text -