bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 4/4] quotearg: do not use grave accent for left quote


From: Paolo Bonzini
Subject: [PATCH 4/4] quotearg: do not use grave accent for left quote
Date: Mon, 19 Dec 2011 09:11:23 +0100

From: Paolo Bonzini <address@hidden>

* 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]