From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] gnu: icedtea-8: Hardcode dynamically loaded libraries. Date: Wed, 14 Sep 2016 16:50:22 +0200 Message-ID: <87wpieo7rl.fsf@gnu.org> References: <87zini4d8h.fsf@member.fsf.org> <871t0sy206.fsf@member.fsf.org> <874m5k82j8.fsf@gnu.org> <8737l2rgvm.fsf@member.fsf.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]:42897) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkBWB-0005Mp-Ji for guix-devel@gnu.org; Wed, 14 Sep 2016 10:50:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkBW7-00038U-Hi for guix-devel@gnu.org; Wed, 14 Sep 2016 10:50:30 -0400 In-Reply-To: <8737l2rgvm.fsf@member.fsf.org> (=?utf-8?B?IuWui+aWh+atpiIn?= =?utf-8?B?cw==?= message of "Wed, 14 Sep 2016 17:05:17 +0800") 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" To: =?utf-8?B?5a6L5paH5q2m?= Cc: guix-devel@gnu.org iyzsong@member.fsf.org (=E5=AE=8B=E6=96=87=E6=AD=A6) skribis: > ludo@gnu.org (Ludovic Court=C3=A8s) writes: [...] >> What often works in such cases is to force ISO-8859-1 encoding >> (=E2=80=9CLatin-1=E2=80=9D), which is a =E2=80=9Ccatch-all=E2=80=9D enco= ding (it=E2=80=99s an 8-bit encoding >> that covers the 256 values): >> >> (with-fluids ((%default-port-encoding "ISO-8859-1")) >> (substitute* file-in-arbitrary-ascii-compatible-encoding >> =E2=80=A6)) >> > > Yeah, I tried that, but it was also producing 'encoding-error' in the > builder, so I gave up it. > > It seems that's because the locale is "C" when calling `substitute*', Weird; the =E2=80=98install-locale=E2=80=99 phase normally installs a UTF-8= locale, and the locale shouldn=E2=80=99t matter once we=E2=80=99re overridden =E2=80=98%default-port-encoding=E2=80=99. > and the files have UTF-8 copyright sign (=C2=A9). But out of the builder, > the `substitute*' works fine even with '(setlocale LC_ALL "C")'. Hmm, OK. Subtle things going on. :-) Thanks, Ludo=E2=80=99.