-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
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
bpo-31877: Add _Py_LegacyLocaleDetected and _PyCoerceLegacyLocale to pylifecycle.h #4134
Conversation
@@ -133,6 +133,12 @@ PyAPI_FUNC(int) _PyOS_URandom(void *buffer, Py_ssize_t size); | |||
PyAPI_FUNC(int) _PyOS_URandomNonblock(void *buffer, Py_ssize_t size); | |||
#endif /* !Py_LIMITED_API */ | |||
|
|||
/* Legacy locale support */ | |||
#ifndef Py_LIMITED_API | |||
PyAPI_FUNC(void) _Py_CoerceLegacyLocale(void); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If add declarations here they should be removed from Programs/python.c
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed; I just wonder if there was some reason this was done the way it was done in the first place. I can't see a good reason, particularly...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only reason I did it that way was because they're private APIs intended specifically for the CPython CLI, and that code built OK in CI and on the buildbots.
However, since that turns out to cause problems on Cygwin, switching to the more conventional approach makes sense, and the private declarations can be dropped.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, thanks for the clarification.
Kept the explanatory comment but moved it to the relevant part of the code.
Trivial (?) fix for https://bugs.python.org/issue31877
https://bugs.python.org/issue31877