From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-f43.google.com (mail-it0-f43.google.com [209.85.214.43]) by mail.openembedded.org (Postfix) with ESMTP id 8E64D771C5 for ; Mon, 8 Aug 2016 20:31:05 +0000 (UTC) Received: by mail-it0-f43.google.com with SMTP id j124so93524406ith.1 for ; Mon, 08 Aug 2016 13:31:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Q1XToIN6AVaiKfKlAIKWWmRB9ag0yl2Gkp1T8AFgibg=; b=L5ciPKlLXIcgBdLMg4X8q73c8S4v5g+c5TWiayFIXajbF5BO2d4lAeQz0ib5yjG3+G XcUJGpWUHLMHOG6HdsecmtDARCpLiWTGUYAuvCZ6//v1HL92hEYmoXLigJXMzrVLwRiL 7NJFua4MdJ0aXBUFqhq1vWgAUQbJhOfXQ3K8BiQGNL2gN2T7D+nkMjVPXtJJuj7JU/9Q RjKbZgQltb1fxCZq5kslQtSnvqM11CJsHahDCumrQhvsxMeb4pbfVqvDwL41lltpzrDq A6kKdnbuFT0mN+blUS2nBVV8Rf7S9TisBa9vFQBl11N2cmBZrYGh0LOgs9WfTS0avvem QUqw== 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:cc; bh=Q1XToIN6AVaiKfKlAIKWWmRB9ag0yl2Gkp1T8AFgibg=; b=Wd8TrQI81tP61IiOLsCzEkx+3JOzdiltZzaatTJuPkzaJmuUJ4BZ6bqfbL8PlsqHeh 6pND7Vs41sRvo4V30mwoF0YFyQuitecivEtdmAAmBSG6iOaTtrlH9PiPsoBhlU9uqvVY NDJk2839s8g/x9CRz3K9Ox2MrqC82kwoUkde6suHK6b9veaiATDBtymRnrqTcdJbOzG9 /aqb5430UUGxPHfFXVnzBga8DSBFQbp30geRGd7CWyQdorN/KM5WZNShQ91Wn/F5/gnL RoUlXW3/ckuBu0/ov8OWrgm73efeaAlStpMHV+7gS9ybrArIKXGoOptxcTD74IsV9Xbq 5jnA== X-Gm-Message-State: AEkoouuoydwdaZszSugaUHv4Z1ZpebfEuvqhZ6ttAoA2ojEHabzdqIozfyUlAP170Q19YwhwXz9JjZgLLYCynM90 X-Received: by 10.36.19.75 with SMTP id 72mr19876676itz.83.1470688266101; Mon, 08 Aug 2016 13:31:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.18.17 with HTTP; Mon, 8 Aug 2016 13:30:45 -0700 (PDT) In-Reply-To: References: From: "Burton, Ross" Date: Mon, 8 Aug 2016 21:30:45 +0100 Message-ID: To: Enrico Scholz Cc: OE-core Subject: Re: python3: use LC_CTYPE, not LC_ALL to set utf-8 X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Aug 2016 20:31:06 -0000 Content-Type: multipart/alternative; boundary=001a1145180aad447d0539954b61 --001a1145180aad447d0539954b61 Content-Type: text/plain; charset=UTF-8 On 8 August 2016 at 18:41, Enrico Scholz wrote: > due to python3's misdesigned string handling, recent bitbake/OE enforces > 'LC_ALL=en_US.utf-8'. This causes a lot of problems: > I can confirm that this combination solves the file encoding problem: $ export LANG=C $ python3 -c 'import sys; print(sys.getfilesystemencoding())' ascii $ export LC_CTYPE=en_US.UTF-8 $ python3 -c 'import sys; print(sys.getfilesystemencoding())' utf-8 Ross --001a1145180aad447d0539954b61 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

= On 8 August 2016 at 18:41, Enrico Scholz <enrico.scholz@sigm= a-chemnitz.de> wrote:
due to python3's misdesigned string handling, recent bitbake/O= E enforces
'LC_ALL=3Den_US.utf-8'.=C2=A0 This causes a lot of problems:
<= /blockquote>

I can confirm that this combination solves the file e= ncoding problem:

$ export LANG=3DC
$ python3 -c 'import sys; print(sys.getfilesystemencod= ing())'
ascii
$ export LC_CTYPE=3Den_US.UTF-8
$ python3 -c 'import sys; print(sys.getfil= esystemencoding())'
utf-8

Ross
--001a1145180aad447d0539954b61--