]> git.ipfire.org Git - thirdparty/ccache.git/commit
doc/MANUAL.adoc: Don't use non-ASCII quotes (#761)
authorSergei Trofimovich <slyfox@inbox.ru>
Mon, 11 Jan 2021 20:17:47 +0000 (20:17 +0000)
committerGitHub <noreply@github.com>
Mon, 11 Jan 2021 20:17:47 +0000 (21:17 +0100)
commitf6202db308e32f9b229203a0c8de8ad4aaf6e5da
tree9e227a071f24bef1ed62ea76b4800848fb1c66ef
parent389789fc613896e8f6f3677b22e8ae7a009d9407
doc/MANUAL.adoc: Don't use non-ASCII quotes (#761)

Some locales like "LANG=fr_FR.iso885915@euro make" can't
handle UTF-8 single- and double-quotes:

$ LANG=fr_FR.iso885915@euro make
...
asciidoc: FAILED: MANUAL.adoc: line 529: unexpected error:
...
  File "/usr/lib/python3.8/encodings/iso8859_15.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u201c'
  in position 54: character maps to <undefined>

To avoid it the patch uses ASCII equivalents of symbols.

The patch is generated as:

$ sed \
    -e 's/\xE2\x80\x99/'\''/g' \
    -e 's/\xE2\x80\x9C/'\`\`'/g' \
    -e 's/\xE2\x80\x9D/'\'\''/g' \
    -i doc/MANUAL.adoc

Reported-by: Christophe PEREZ
Bug: https://bugs.gentoo.org/762814
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
doc/MANUAL.adoc