libsoup3: update to 3.6.0; fix GTK2/3 app startup
[oi-userland.git] / components / developer / gcc-12 / patches / 0004-intl-Don-t-use-UTF-8-quotes.-Ever.patch
blobc714a89ecd322f7b74308c47dd127e2998d514bb
1 From e5f67d0792d581d47bf66eb6b2b2da0354cbff60 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 d83e351139c..d14429d6977 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;