]> git.ipfire.org Git - thirdparty/gnulib.git/commit
quotearg: do not depend on localcharset
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 5 Sep 2025 04:18:30 +0000 (21:18 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 5 Sep 2025 07:20:57 +0000 (00:20 -0700)
commit751e42b0bc5c703eb2fa376abfddca1d1500145d
tree08c49470be9365cae3d012fc6dbf3f67dc9165c8
parent4ef864ec873506aacf717d0cb558d950831dc399
quotearg: do not depend on localcharset

* lib/quotearg.c: Do not include localcharset.h.
(gettext_quote): Do not use locale_charset; instead, use
mbrtoc32 to determine whether the character set uses UTF-8.
Treat GB-18030 like similar encodings, as it is not worth the
trouble of special-casing: its special-case code has been broken
since 2011, nobody cared enough to report the bug, and the idea
that someone would use GB-18030 without translations is weird anyway.
* modules/quotearg (Depends-on): Remove localcharset.
ChangeLog
lib/quotearg.c
modules/quotearg