Paul Eggert wrote:
> Treat GB-18030 like similar encodings, as it is not worth the
> trouble of special-casing

Agreed [1].

> its special-case code has been broken since 2011,

Oh, that quote string includes a BEL character. Must have been a funny
user experience :) Together with the broken GB18030 converters in
FreeBSD, NetBSD, Solaris OmniOS, and some glibc versions, it proves
that this locale encoding never had a significant number of users.

Bruno

[1] https://lists.gnu.org/archive/html/bug-gnulib/2023-05/msg00105.html


2025-09-05  Bruno Haible  <[email protected]>

        quotearg: Improve comment.
        * lib/quotearg.c (gettext_quote): Improve terminology. Use standard
        encoding name.

diff --git a/lib/quotearg.c b/lib/quotearg.c
index 74878cbc78..91a2afd733 100644
--- a/lib/quotearg.c
+++ b/lib/quotearg.c
@@ -204,7 +204,7 @@ gettext_quote (char const *msgid, enum quoting_style s)
     return translation;
 
   /* For UTF-8, use single quotes U+2018 and U+2019.
-     Here is a list of other locales that include U+2018 and U+2019:
+     Here is a list of other locale encodings that include U+2018 and U+2019:
 
         ISO-8859-7   0xA1                 KOI8-T       0x91
         CP869        0x8B                 CP874        0x91
@@ -217,7 +217,7 @@ gettext_quote (char const *msgid, enum quoting_style s)
         EUC-JP       0xA1 0xC6            EUC-KR       0xA1 0xAE
         EUC-TW       0xA1 0xE4            BIG5         0xA1 0xA5
         BIG5-HKSCS   0xA1 0xA5            EUC-CN       0xA1 0xAE
-        GBK          0xA1 0xAE            GB-18030     0xA1 0xAE
+        GBK          0xA1 0xAE            GB18030      0xA1 0xAE
         Georgian-PS  0x91                 PT154        0x91
 
      These are not in wide use; using iconv is overkill,




Reply via email to