This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: python3 and mintty: why ANSI_X3.4-1968 encoding
- From: Frédéric Bron <frederic dot bron at m4x dot org>
- To: cygwin <cygwin at cygwin dot com>
- Date: Sat, 30 Aug 2014 00:27:49 +0200
- Subject: Re: python3 and mintty: why ANSI_X3.4-1968 encoding
- Authentication-results: sourceware.org; auth=none
- References: <CAPw2spiBXfpoWs1LfA8tbDr3gjOOvT5WbhXjR5qzzYk_D3XNVQ at mail dot gmail dot com>
> I am using mintty with option Text.locale=fr_FR and Character set=UTF-8
> Why, then, python3 reports a different encoding (ANSI_X3.4-1968) for
> stdout and stdin?
I found the issue:
I had LANG=fr_FR.UTF-8 and at the same time LC_ALL=C
I removed LC_ALL=C and my python3 script works with UTF-8 i/o.
Frédéric
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple