Author vstinner
Recipients ezio.melotti, vstinner
Date 2017-06-13.09:10:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1497345009.29.0.991202796279.issue30647@psf.upfronthosting.co.za>
In-reply-to
Content
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'
History
Date User Action Args
2017-06-13 09:10:09vstinnersetrecipients: + vstinner, ezio.melotti
2017-06-13 09:10:09vstinnersetmessageid: <1497345009.29.0.991202796279.issue30647@psf.upfronthosting.co.za>
2017-06-13 09:10:09vstinnerlinkissue30647 messages
2017-06-13 09:10:08vstinnercreate