Skip to content

stdinc: On Windows, uppercase the system environment table's var names.#15976

Open
icculus wants to merge 1 commit into
libsdl-org:mainfrom
icculus:sdl3-windows-envvars-uppercased
Open

stdinc: On Windows, uppercase the system environment table's var names.#15976
icculus wants to merge 1 commit into
libsdl-org:mainfrom
icculus:sdl3-windows-envvars-uppercased

Conversation

@icculus

@icculus icculus commented Jul 12, 2026

Copy link
Copy Markdown
Collaborator
  • I confirm that I am the author of this code and release it to the SDL project under the Zlib license. This contribution does not contain code from other sources, including code generated by a Large Language Model ("AI").

This is a draft because this hasn't been tested at all yet. testautomation banged on this, found an issue that was fixed, and now everything feels tested. :)

Fixes #15086.

@icculus icculus added this to the 3.6.0 milestone Jul 12, 2026
@icculus icculus self-assigned this Jul 12, 2026
@icculus
icculus force-pushed the sdl3-windows-envvars-uppercased branch from 9b10c08 to 895afe5 Compare July 12, 2026 03:58
@icculus

icculus commented Jul 12, 2026

Copy link
Copy Markdown
Collaborator Author

This is failing tests on Windows now, because:

Assert 'Environment of child should contain "testprocess_inherited_var=Pd%F@k#"4d0aIJXU9+uCi;TY}`B0=AYc"': failed

Naturally, this is no longer lowercased on Windows when the child process get access to it.

Test needs to get fixed.

@icculus
icculus force-pushed the sdl3-windows-envvars-uppercased branch 2 times, most recently from 9d8ad1e to 3842d89 Compare July 12, 2026 14:38
@icculus
icculus force-pushed the sdl3-windows-envvars-uppercased branch from 3842d89 to f5cf5fb Compare July 12, 2026 15:02
@icculus
icculus marked this pull request as ready for review July 13, 2026 22:42
@icculus

icculus commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator Author

Test got fixed, this can merge, if we are ready to do it.

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

Successfully merging this pull request may close these issues.

SDL_getenv() shoudl be case-insensitive (at least on Windows)

1 participant