bpo-31877: Add _Py_LegacyLocaleDetected and _PyCoerceLegacyLocale to pylifecycle.h - #4134
Conversation
There was a problem hiding this comment.
If add declarations here they should be removed from Programs/python.c.
There was a problem hiding this comment.
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.
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.
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