GNU bug report logs - #30095
substitute* decoding-error

Previous Next

Package: guix;

Reported by: nee <nee <at> cock.li>

Date: Sat, 13 Jan 2018 02:26:01 UTC

Severity: normal

Done: Ricardo Wurmus <rekado <at> elephly.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Ricardo Wurmus <rekado <at> elephly.net>
To: nee <nee <at> cock.li>
Cc: 30095 <at> debbugs.gnu.org
Subject: bug#30095: substitute* decoding-error
Date: Sat, 13 Jan 2018 13:49:12 +0100
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 ë and é 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")))

-- 
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net






This bug report was last modified 5 years and 6 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.