Skip to content

bpo-35890 : Fix some API calling consistency#11742

Merged
zooba merged 3 commits intopython:masterfrom
gongminmin:ApiConsistency
Feb 3, 2019
Merged

bpo-35890 : Fix some API calling consistency#11742
zooba merged 3 commits intopython:masterfrom
gongminmin:ApiConsistency

Conversation

@gongminmin
Copy link
Contributor

@gongminmin gongminmin commented Feb 2, 2019

  1. Unicode version of Windows APIs are used in places, but not for GetVersionEx in Python/sysmodule.c
  2. The wcstok_s is called on Windows in Modules/main.c and PC/launcher.c, but not in Python/pathconfig.c

This change fixes these 2 callings by calling unicode version GetVersionExW, and add a WCSTOK macro to wrap wcstok_s.

https://bugs.python.org/issue35890

1. Unicode version of Windows APIs are used in places, but not for GetVersionEx in Python/sysmodule.c
2. The wcstok_s is called on Windows in Modules/main.c and PC/launcher.c, but not in Python/pathconfig.c
@zooba zooba merged commit 8ebc645 into python:master Feb 3, 2019
@gongminmin gongminmin deleted the ApiConsistency branch February 3, 2019 05:19
gongminmin added a commit to gongminmin/cpython that referenced this pull request May 4, 2019
Unicode version of Windows APIs are used in places, but not for GetVersionEx in Python/sysmodule.c
The wcstok_s is called on Windows in Modules/main.c and PC/launcher.c, but not in Python/pathconfig.c
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.

4 participants