STINNER Victor <vstin...@python.org> added the comment:
>>> loc=locale.getlocale(locale.LC_CTYPE) >>> loc ('tr_TR', 'ISO8859-9') getlocale() has issues on Unix, but worse issues on Windows. See: * bpo-12726 * bpo-20087 * bpo-20088 * bpo-23425 * bpo-33934 * bpo-38805 I never use getlocale() and I never understood the purpose of this function. I use locale.setlocale(loc) (same than locale.setlocale(loc, None)) to *get* a locale: the result can be passed to locale.setlocale(loc, result) with no problem. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38324> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com