From: Bruno Haible Date: Sat, 25 May 2024 10:14:29 +0000 (+0200) Subject: uchar-c23: Speed up mbrtoc32 on Solaris 11.4. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=3a35ab112e2d7c380af5cf39b2bdf567272dd73d;p=gnulib.git uchar-c23: Speed up mbrtoc32 on Solaris 11.4. * lib/lc-charset-unicode.c (get_converters): Cache the return value. --- diff --git a/ChangeLog b/ChangeLog index e0daa9c705..67602828f1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2024-05-25 Bruno Haible + + uchar-c23: Speed up mbrtoc32 on Solaris 11.4. + * lib/lc-charset-unicode.c (get_converters): Cache the return value. + 2024-05-25 Bruno Haible tests: Refactor. diff --git a/lib/lc-charset-unicode.c b/lib/lc-charset-unicode.c index f6529c1600..4558f9288e 100644 --- a/lib/lc-charset-unicode.c +++ b/lib/lc-charset-unicode.c @@ -107,6 +107,7 @@ get_converters (const char *encoding) return NULL; } strcpy (conv->encoding, encoding); + gl_tls_set (converters_key, conv); } else if (strcmp (conv->encoding, encoding) != 0) {