summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2011-12-18 15:44:17 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2012-01-07 15:22:09 +0100
commit1a43a982c927eaf26bbc2701a872009d9be4b33b (patch)
tree10557b20737d6df3e974653ca2f95a5fcdd1818c /lib
parenta7b66296691d754d26a3cdd829814e892e71a4d3 (diff)
downloadgnulib-1a43a982c927eaf26bbc2701a872009d9be4b33b.tar.gz
quotearg: do not use grave accent for left quote
* lib/quotearg.c (gettext_quote): Map "`" to "'" for locale_quoting_style. (quotearg_buffer_restyled): Fix example. * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
Diffstat (limited to 'lib')
-rw-r--r--lib/quotearg.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/quotearg.c b/lib/quotearg.c
index e43b0c137e..c37aa358be 100644
--- a/lib/quotearg.c
+++ b/lib/quotearg.c
@@ -221,10 +221,7 @@ gettext_quote (char const *msgid, enum quoting_style s)
if (STRCASEEQ (locale_code, "GB18030", 'G','B','1','8','0','3','0',0,0))
return msgid[0] == '`' ? "\xa1\ae": "\xa1\xaf";
- if (s == clocale_quoting_style)
- return "\"";
-
- return translation;
+ return (s == clocale_quoting_style ? "\"" : "'");
}
/* Place into buffer BUFFER (of size BUFFERSIZE) a quoted version of
@@ -303,7 +300,7 @@ quotearg_buffer_restyled (char *buffer, size_t buffersize,
use Unicode U+2018 (LEFT SINGLE QUOTATION MARK) and
Unicode U+2019 (RIGHT SINGLE QUOTATION MARK). If the
current locale is not Unicode, locale_quoting_style
- will quote `like this', and clocale_quoting_style will
+ will quote 'like this', and clocale_quoting_style will
quote "like this". You should always include translations
for "`" and "'" even if U+2018 and U+2019 are appropriate
for your locale.