From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#30095: substitute* decoding-error Date: Sat, 13 Jan 2018 22:35:27 +0100 Message-ID: <87bmhxl9wg.fsf@gnu.org> References: <7870af65-1d3f-408d-9b26-4a5850c776a2@cock.li> 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]:39165) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eaTTB-0008Jt-R3 for bug-guix@gnu.org; Sat, 13 Jan 2018 16:36:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eaTT8-00081P-NY for bug-guix@gnu.org; Sat, 13 Jan 2018 16:36:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:47290) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eaTT8-00081K-Jj for bug-guix@gnu.org; Sat, 13 Jan 2018 16:36:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eaTT8-0008LD-Cf for bug-guix@gnu.org; Sat, 13 Jan 2018 16:36:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <7870af65-1d3f-408d-9b26-4a5850c776a2@cock.li> (nee@cock.li's message of "Sat, 13 Jan 2018 03:25:35 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: nee Cc: 30095@debbugs.gnu.org Hi, nee skribis: > Hello, attached is a package definition that fails because substitute* > throws an error. The file I try to substitute* on has some names with > special signs like =C3=AB and =C3=A9 that might be related? Most likely the file in question is not UTF-8-encoded, whereas =E2=80=98substitute*=E2=80=99 defaults to UTF-8. If it=E2=80=99s Latin-1 (aka. ISO-8859-1), you can do: (with-fluids ((%default-port-encoding "ISO-8859-1")) (substitute* =E2=80=A6)) which should solve the problem (there are a few examples of that in the package definitions.) HTH! Ludo=E2=80=99. =20=20