Author vstinner
Recipients ezio.melotti, vstinner
Date 2017-06-13.09:10:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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

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)
Date User Action Args
2017-06-13 09:10:09vstinnersetrecipients: + vstinner, ezio.melotti
2017-06-13 09:10:09vstinnersetmessageid: <>
2017-06-13 09:10:09vstinnerlinkissue30647 messages
2017-06-13 09:10:08vstinnercreate