python/hypothesis: update to 6.122.3
[oi-userland.git] / components / developer / gcc-13 / patches / 0004-intl-Don-t-use-UTF-8-quotes.-Ever.patch
blob859f094353fdd988955be64ad46d7ae1eb093873
1 From e6fd28ba37bd8a5468c81290be8a9a174488f0e2 Mon Sep 17 00:00:00 2001
2 From: Richard Lowe <richlowe@richlowe.net>
3 Date: Tue, 11 Mar 2014 21:50:30 +0000
4 Subject: intl: Don't use UTF-8 quotes. Ever.
6 ---
7 gcc/intl.cc | 17 ++++-------------
8 1 file changed, 4 insertions(+), 13 deletions(-)
10 diff --git a/gcc/intl.cc b/gcc/intl.cc
11 index 15bbb1acd9b1..f3a681dbabaf 100644
12 --- a/gcc/intl.cc
13 +++ b/gcc/intl.cc
14 @@ -74,17 +74,11 @@ gcc_init_libintl (void)
16 if (!strcmp (open_quote, "`") && !strcmp (close_quote, "'"))
18 - /* Untranslated quotes that it may be possible to replace with
19 - U+2018 and U+2019; but otherwise use "'" instead of "`" as
20 - opening quote. */
21 + /*
22 + * open_quote is ` purely for ease of translation. If they aren't
23 + * translated, use ' for both
24 + */
25 open_quote = "'";
26 -#if defined HAVE_LANGINFO_CODESET
27 - if (locale_utf8)
28 - {
29 - open_quote = "\xe2\x80\x98";
30 - close_quote = "\xe2\x80\x99";
31 - }
32 -#endif
36 @@ -145,6 +139,3 @@ get_spaces (const char *str)
37 spaces[len] = '\0';
38 return spaces;