From 9ebe8ef1151790213ca655507bf18d38fe06b96e Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Thu, 31 Dec 2020 20:21:25 +0000 Subject: 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 --- dev-util/ccache/ccache-4.1.ebuild | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'dev-util/ccache') diff --git a/dev-util/ccache/ccache-4.1.ebuild b/dev-util/ccache/ccache-4.1.ebuild index 0e307b9c7221..11644f232e31 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 } -- cgit v1.2.3-65-gdbad