[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#30095: substitute* decoding-error

From: Ludovic Courtès
Subject: bug#30095: substitute* decoding-error
Date: Sat, 13 Jan 2018 22:35:27 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)


nee <address@hidden> 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 ë and é that might be related?

Most likely the file in question is not UTF-8-encoded, whereas
‘substitute*’ defaults to UTF-8.

If it’s Latin-1 (aka. ISO-8859-1), you can do:

  (with-fluids ((%default-port-encoding "ISO-8859-1"))
    (substitute* …))

which should solve the problem (there are a few examples of that in the
package definitions.)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]