From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Locale of build environments Date: Fri, 27 Feb 2015 15:13:40 +0100 Message-ID: <87385rsaqz.fsf@gnu.org> References: <20150210201452.GA15529@debian> <87h9urt50j.fsf@netris.org> <87mw4iq3uz.fsf_-_@gnu.org> <87bnkgw9fn.fsf@gnu.org> <87y4nk6xv1.fsf@netris.org> <87mw3ztzcr.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56359) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRLfo-0000u6-7O for guix-devel@gnu.org; Fri, 27 Feb 2015 09:13:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YRLfj-0006hQ-W9 for guix-devel@gnu.org; Fri, 27 Feb 2015 09:13:48 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36174) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRLfj-0006hM-TO for guix-devel@gnu.org; Fri, 27 Feb 2015 09:13:43 -0500 In-Reply-To: <87mw3ztzcr.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Fri, 27 Feb 2015 11:36:52 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Mark H Weaver Cc: guix-devel@gnu.org ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > Mark H Weaver skribis: > >> ludo@gnu.org (Ludovic Court=C3=A8s) writes: >> >>> Commit 5335c56 adds an =E2=80=98install-locale=E2=80=99 phase to gnu-bu= ild-system and >>> the next one adds glibc-utf8-locale to the implicit inputs. >>> >>> During bootstrap, locales aren=E2=80=99t available so we=E2=80=99re sti= ll running on the >>> C locale, which is fine in practice because we only get to deal with >>> ASCII file names at that point and do not need UTF-8 for tests or >>> anything. >>> >>> Commit 9cca706 adjust patch-and-repack to use UTF-8 as well when >>> possible=E2=80=93i.e., not during bootstrap. >> >> Thanks! >> >> However, there's a missing piece: I think we should set LANG to the >> chosen locale, otherwise the top-level guile builder will be the only >> process that uses UTF-8. What do you think? > > Yes, why not. It=E2=80=99s not strictly necessary but it=E2=80=99s proba= bly a good > idea. Like this? I went ahead with this change (to avoid an additional rebuild), but comments are welcome of course. Besides, commit e8c9f04 is interesting: =E2=80=98substitute*=E2=80=99 will = now break non-UTF-8 files by defaults (replacing invalid UTF-8 sequences with question marks in the output.) I don=E2=80=99t think this is a big issue, = but we=E2=80=99ll see in practice if it is. Ludo=E2=80=99.