Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ParseCommandLine() lacks support for escaped doublequote #357

Closed
SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Closed

ParseCommandLine() lacks support for escaped doublequote #357

SDLBugzilla opened this issue Feb 10, 2021 · 0 comments

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

These attachments are available in the static archive:

Reported in version: HG 1.2
Reported for operating system, platform: Windows (All), x86

Comments on the original bug report:

On 2007-10-10 14:52:24 +0000, Tony J. White wrote:

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.

On 2007-10-10 14:53:12 +0000, Tony J. White wrote:

Created attachment 234
svn3450 - support escaped doublequote chars in command line arguments

On 2007-10-10 15:01:45 +0000, Tony J. White wrote:

Created attachment 235
svn3450 - support escaped doublequote chars in command line arguments # 2

removed unused variable

On 2007-12-29 10:58:51 +0000, Sam Lantinga wrote:

This is in subversion with revision 3487. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant