From d181a93698644dddbf6ed50ec4f45b82e5980081 Mon Sep 17 00:00:00 2001 From: Richard Lowe Date: Tue, 11 Mar 2014 21:50:30 +0000 Subject: intl: Don't use UTF-8 quotes. Ever. --- gcc/intl.c | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/gcc/intl.c b/gcc/intl.c index db80e53b4f9..2de6f28e5ff 100644 --- a/gcc/intl.c +++ b/gcc/intl.c @@ -74,17 +74,11 @@ gcc_init_libintl (void) if (!strcmp (open_quote, "`") && !strcmp (close_quote, "'")) { - /* Untranslated quotes that it may be possible to replace with - U+2018 and U+2019; but otherwise use "'" instead of "`" as - opening quote. */ + /* + * open_quote is ` purely for ease of translation. If they aren't + * translated, use ' for both + */ open_quote = "'"; -#if defined HAVE_LANGINFO_CODESET - if (locale_utf8) - { - open_quote = "\xe2\x80\x98"; - close_quote = "\xe2\x80\x99"; - } -#endif } } @@ -145,6 +139,3 @@ get_spaces (const char *str) spaces[len] = '\0'; return spaces; } - - -