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
locale.getpreferredencoding fails on AIX #37882
Comments
The problem is setting LC_CTYPE to an empty string: >>> locale.setlocale(locale.LC_CTYPE, '')
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/home/neal/python/dist/aix/Lib/locale.py", line
381, in setlocale
return _setlocale(category, locale)
locale.Error: locale setting not supported Putting a try/except around the setlocale call in |
Logged In: YES What are the relevant environment settings? According to http://nscp.upenn.edu/aix4.3html/libs/basetrf2/setlocale.htm specifying "" as the second argument of setlocale is |
Logged In: YES The problem was that the setlocale in Lib/locale.py was |
Logged In: YES I don't understand. In the traceback, it says that |
Logged In: YES The traceback from the original report was not the same as |
Logged In: YES I guess the empty string should be accepted (although this Fixed in locale.py 1.25. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: