Mail Archives: djgpp/2000/09/20/06:00:25
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?
Right,
MartinS
- Raw text -