From: Paolo Bonzini <pbonz...@redhat.com> * lib/quotearg.c (gettext_quote): Map "`" to "'" for locale_quoting_style. (quotearg_buffer_restyled): Fix example. --- lib/quotearg.c | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/lib/quotearg.c b/lib/quotearg.c index a60baba..156c6ab 100644 --- a/lib/quotearg.c +++ b/lib/quotearg.c @@ -201,10 +201,7 @@ gettext_quote (char const *msgid, enum quoting_style s) if (STRCASEEQ (locale_code, "UTF-8", 'U','T','F','-','8',0,0,0,0)) return msgid[0] == '`' ? "\xe2\x80\x98": "\xe2\x80\x99"; - if (s == clocale_quoting_style) - return "\""; - - return translation; + return (s == clocale_quoting_style ? "\"" : "'"); } /* Place into buffer BUFFER (of size BUFFERSIZE) a quoted version of @@ -276,7 +273,7 @@ quotearg_buffer_restyled (char *buffer, size_t buffersize, The message catalog should translate "`" to a left quotation mark suitable for the locale, and similarly for "'". If the catalog has no translation, - locale_quoting_style quotes `like this', and + locale_quoting_style quotes 'like this', and clocale_quoting_style quotes "like this". For example, an English Unicode locale should -- 1.7.7.1