| Summary: | ParseCommandLine() lacks support for escaped doublequote | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Tony J. White <tjw> |
| Component: | main | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 1.2 | ||
| Hardware: | x86 | ||
| OS: | Windows (All) | ||
| Attachments: |
svn3450 - support escaped doublequote chars in command line arguments
svn3450 - support escaped doublequote chars in command line arguments #2 |
||
Created attachment 234 [details]
svn3450 - support escaped doublequote chars in command line arguments
Created attachment 235 [details]
svn3450 - support escaped doublequote chars in command line arguments #2
removed unused variable
This is in subversion with revision 3487. Thanks! |
The ParseCommandLine() function in SDL_win32_main.c does not support escaped doublequotes ("). This is problematic when trying to pass a quoted string to an SDL application on the command line. For instance, to start ioquake3 with a specified fs_homepath, I would run: ioquake3.x86.exe +set fs_homepath "\"C:\Program Files\Quake 3\"" When using the SDL version of ioquake3.exe, the parsing ends at the second doublequote so the fs_homepath becomes just \. Attached patch adds support for parsing escaped double quotes.