From 4aad171c4c35186d24544c8151952e2448bdd700 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 25 May 2024 12:14:29 +0200 Subject: [PATCH] uchar-c23: Speed up mbrtoc32 on Solaris 11.4. * lib/lc-charset-unicode.c (get_converters): Cache the return value. --- ChangeLog | 5 +++++ lib/lc-charset-unicode.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 12c2600d7a..b552a0f319 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-24 Collin Funk boot-time, readutmp: Add a Native Windows boot time fallback. 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) { -- 2.39.5