[issue44387] Not obvious that locale.LC_MESSAGES may not exist sometimes (e.g. on Windows)

Richard Mines report at bugs.python.org
Fri Jun 11 03:21:26 EDT 2021


Richard Mines <richardmines91 at gmail.com> added the comment:

If you need a proof that it is possible that locale.LC_MESSAGES doesn't exist, I've attached a screenshot. Even more I'm showing that locale.LC_TIME may be equal to 5 which is a placeholder for locale.LC_MESSAGES if there is an ImportError:
https://github.com/python/cpython/blob/62f1d2b3d7dda99598d053e10b785c463fdcf591/Lib/locale.py#L57

OS: Windows 10 20H2
Python: 3.8.10
Exact link to get python: https://www.microsoft.com/ru-ru/p/python-38/9mssztt1n39l?activetab=pivot:overviewtab

----------
Added file: https://bugs.python.org/file50102/lc_messages_not_exist.png

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44387>
_______________________________________


More information about the Python-bugs-list mailing list