Subject: Re: bug#30095: substitute* decoding-error

From: Ricardo Wurmus <[email-masked]>
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