commit:     9ebe8ef1151790213ca655507bf18d38fe06b96e
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 31 20:21:25 2020 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Thu Dec 31 20:21:45 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ebe8ef1

dev-util/ccache: Avoid non-ASCII in man pages

Some locales, like LANG=fr_FR.iso885915@euro can't handle
UTF-8 single and double quotes. Interestingly LANG=C can
handle it. Let's stick to ASCII variants.

Reported-by: Christophe PEREZ
Closes: https://bugs.gentoo.org/762814
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 dev-util/ccache/ccache-4.1.ebuild | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/dev-util/ccache/ccache-4.1.ebuild 
b/dev-util/ccache/ccache-4.1.ebuild
index 0e307b9c722..11644f232e3 100644
--- a/dev-util/ccache/ccache-4.1.ebuild
+++ b/dev-util/ccache/ccache-4.1.ebuild
@@ -46,6 +46,14 @@ src_prepare() {
                -e "/^EPREFIX=/s:'':'${EPREFIX}':" \
                "${FILESDIR}"/ccache-config-3 > ccache-config || die
 
+       # Avoid non-ASCII double quotes as they fail on
+       # LANG=fr_FR.iso885915@euro: #762814.
+       sed \
+               -e 's/\xE2\x80\x99/'\''/g' \
+               -e 's/\xE2\x80\x9C/"/g' \
+               -e 's/\xE2\x80\x9D/"/g' \
+               -i doc/MANUAL.adoc || die
+
        # mainly used in tests
        tc-export CC OBJDUMP
 }

Reply via email to