delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/08/29/18:28:53

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type:content-transfer-encoding;
q=dns; s=default; b=e9ZF4Tm7N81cEJ/eM9rDNiyWa/nqFKjoBAz6XfstvcJ
CysaX3OEAGBRrpRr4GF0LNEoGFsFopBfyu3M+yhBevEPWg1Hh4X7C+WNBQBFFZ4c
01jlaQ66/b/rziBm3x8fyf1Qu329MOFxegjS9BPLGC+MMZ4pSgZY57ocA+tAxDFY
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type:content-transfer-encoding;
s=default; bh=5QTsYe1MaB5BtPQLp096EZPUI24=; b=FoO50qhaUwnjOofYR
nBRsodjuvVTuiBSPcBtlUjtNvwxr4cWwUX2chl81gpTF0+wWFgd46LqlKdCgTTtF
j75YUoQSOwmJspK86UrEalz8kTdRoqJtSbZj92AUFUW66L6AKbV0c+yQGxxDcJOI
ie6zd3jiPfM0M4WS/KHa7tOnyw=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-we0-f173.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type:content-transfer-encoding; bh=yqzEFfYiTHOaoTAHf4fYXxyl8teUFkILxv7irdl0SdM=; b=bicCXeDGmQLTXRfxu80bY4cZUuTw0upokT0ltAzPVfudcK+AoQkinOO+7+Zz652lCS wEqIjiQVirTBYpyhfb3b7ppVQfOkYVIUnEWIViDT1Fd6vaKphnx41Mz0k1L4VNmdjZEM OdBPufqAXU4uE+BLEQsc0ka7DhvXrcvhhYGyRq/yMc7CLaE6rQvjC5XKTU3hu/Skj1kD 9culgbxp1VkXcYjfZSxAuauJkxkou1sTnejorEexqBse6OOkwxj0tkDVNofCHbGzYFrg gSMmVoLnGcRImLuPeQjI3VapWx7vBRUxgZ8buFJMx/US0NDYg+eCdVp0tRxVhgaoJ27p aNow==
X-Gm-Message-State: ALoCoQknpsJzbFX1kKwngy6nyT/1d7hX8nzOFcvt93XmxLN806CtAQaDWW2a1icjTku+MXQoDNkz
X-Received: by 10.181.13.175 with SMTP id ez15mr6640189wid.59.1409351309795; Fri, 29 Aug 2014 15:28:29 -0700 (PDT)
MIME-Version: 1.0
In-Reply-To: <CAPw2spiBXfpoWs1LfA8tbDr3gjOOvT5WbhXjR5qzzYk_D3XNVQ@mail.gmail.com>
References: <CAPw2spiBXfpoWs1LfA8tbDr3gjOOvT5WbhXjR5qzzYk_D3XNVQ AT mail DOT gmail DOT com>
From: =?ISO-8859-1?Q?Fr=E9d=E9ric_Bron?= <frederic DOT bron AT m4x DOT org>
Date: Sat, 30 Aug 2014 00:27:49 +0200
Message-ID: <CAPw2spi_VFKNyZ6tvJ7xLWDOHzvG2AOpr0vfhu4WzH5FnDPWFg@mail.gmail.com>
Subject: Re: python3 and mintty: why ANSI_X3.4-1968 encoding
To: cygwin <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id s7TMSkb9026322

> 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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019