Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/ccache/
Date: Thu, 31 Dec 2020 20:21:55
Message-Id: 1609446105.9ebe8ef1151790213ca655507bf18d38fe06b96e.slyfox@gentoo
1 commit: 9ebe8ef1151790213ca655507bf18d38fe06b96e
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 31 20:21:25 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 31 20:21:45 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ebe8ef1
7
8 dev-util/ccache: Avoid non-ASCII in man pages
9
10 Some locales, like LANG=fr_FR.iso885915@euro can't handle
11 UTF-8 single and double quotes. Interestingly LANG=C can
12 handle it. Let's stick to ASCII variants.
13
14 Reported-by: Christophe PEREZ
15 Closes: https://bugs.gentoo.org/762814
16 Package-Manager: Portage-3.0.12, Repoman-3.0.2
17 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
18
19 dev-util/ccache/ccache-4.1.ebuild | 8 ++++++++
20 1 file changed, 8 insertions(+)
21
22 diff --git a/dev-util/ccache/ccache-4.1.ebuild b/dev-util/ccache/ccache-4.1.ebuild
23 index 0e307b9c722..11644f232e3 100644
24 --- a/dev-util/ccache/ccache-4.1.ebuild
25 +++ b/dev-util/ccache/ccache-4.1.ebuild
26 @@ -46,6 +46,14 @@ src_prepare() {
27 -e "/^EPREFIX=/s:'':'${EPREFIX}':" \
28 "${FILESDIR}"/ccache-config-3 > ccache-config || die
29
30 + # Avoid non-ASCII double quotes as they fail on
31 + # LANG=fr_FR.iso885915@euro: #762814.
32 + sed \
33 + -e 's/\xE2\x80\x99/'\''/g' \
34 + -e 's/\xE2\x80\x9C/"/g' \
35 + -e 's/\xE2\x80\x9D/"/g' \
36 + -i doc/MANUAL.adoc || die
37 +
38 # mainly used in tests
39 tc-export CC OBJDUMP
40 }