STINNER Victor added the comment: On my FreeBSD 11 VM, I only have the "C" locale, not "UTF-8 C" locale:
[haypo@freebsd ~/prog/python/master]$ locale -a|grep ^C C But CPython still asks me to use a non existent locale (newlines added for readability): [haypo@freebsd ~/prog/python/master]$ ./python Python runtime initialized with LC_CTYPE=C (a locale with default ASCII encoding), which may cause Unicode compatibility problems. Using C.UTF-8, C.utf8, or UTF-8 (if available) as alternative Unicode-compatible locales is recommended. Python 3.7.0a0 (heads/master:d79c1d4a94, Jun 13 2017, 10:59:23) [GCC 4.2.1 Compatible FreeBSD Clang 3.8.0 (tags/RELEASE_380/final 262564)] on freebsd11 Type "help", "copyright", "credits" or "license" for more information. >>> import locale >>> locale.setlocale(locale.LC_CTYPE, None) 'C' ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30647> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com