From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: bug#30095: substitute* decoding-error Date: Sat, 13 Jan 2018 13:49:12 +0100 Message-ID: <87po6dc4af.fsf@elephly.net> 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]:35441) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ealHN-000318-Lo for bug-guix@gnu.org; Sun, 14 Jan 2018 11:37:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ealHK-0008Qo-Iw for bug-guix@gnu.org; Sun, 14 Jan 2018 11:37:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:48301) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ealHK-0008QY-G5 for bug-guix@gnu.org; Sun, 14 Jan 2018 11:37:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ealHK-0005gX-6Y for bug-guix@gnu.org; Sun, 14 Jan 2018 11:37:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <7870af65-1d3f-408d-9b26-4a5850c776a2@cock.li> 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, > 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? You could try something like this: ;; This file is ISO-8859-1 encoded. (with-fluids ((%default-port-encoding #f)) (substitute* "the/file" (("this") "that"))) --=20 Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net