Skip to content

bpo-35890 : Fix some API calling consistency#11742

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

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

Conversation

@gongminmin

@gongminmin gongminmin commented Feb 2, 2019

Copy link
Copy Markdown
Contributor
  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
Comment thread Python/sysmodule.c Outdated
Comment thread Misc/NEWS.d/next/Windows/2019-02-02-22-12-23.bpo-35890.ccIjHH.rst Outdated
@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