Differences From Artifact [90c404e7e7]:
- File
src/main.c
— part of check-in
[274d8a1dcd]
at
2012-09-11 18:49:29
on branch trunk
— enable unicode commandline for MinGW/MinGW-w64 as well
remove unused MINGW_BROKEN_MAINARGS
(user: jan.nijtmans size: 60176)
To Artifact [3e69c3a670]:
- File src/main.c — part of check-in [ad91647ea7] at 2012-09-20 20:33:20 on branch trunk — eliminate all #ifdef UNICODE, assuming everthing is compiled with -DUNICODE -D_UNICODE (user: jan.nijtmans size: 60078)
| ︙ | ︙ | |||
477 478 479 480 481 482 483 | g.argc = argc; g.argv = argv; #ifdef _WIN32 parse_windows_command_line(&g.argc, &g.argv); GetModuleFileNameW(NULL, buf, MAX_PATH); g.argv[0] = fossil_unicode_to_utf8(buf); | < < < < | 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 |
g.argc = argc;
g.argv = argv;
#ifdef _WIN32
parse_windows_command_line(&g.argc, &g.argv);
GetModuleFileNameW(NULL, buf, MAX_PATH);
g.argv[0] = fossil_unicode_to_utf8(buf);
for(i=1; i<g.argc; i++) g.argv[i] = fossil_unicode_to_utf8(g.argv[i]);
#endif
for(i=1; i<g.argc-1; i++){
z = g.argv[i];
if( z[0]!='-' ) continue;
z++;
if( z[0]=='-' ) z++;
if( z[0]==0 ) return; /* Stop searching at "--" */
|
| ︙ | ︙ |