]> Savannah Git Hosting - gnulib.git/commitdiff
uchar-c23: Speed up mbrtoc32 on Solaris 11.4.
authorBruno Haible <bruno@clisp.org>
Sat, 25 May 2024 10:14:29 +0000 (12:14 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 31 May 2024 21:51:57 +0000 (23:51 +0200)
* lib/lc-charset-unicode.c (get_converters): Cache the return value.

ChangeLog
lib/lc-charset-unicode.c

index ca996e5e03b539778fcff0d6ca219411afa5ef85..36b3fb03ae987a4568e67084b5047c00c3bb51d7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-05-25  Bruno Haible  <bruno@clisp.org>
+
+       uchar-c23: Speed up mbrtoc32 on Solaris 11.4.
+       * lib/lc-charset-unicode.c (get_converters): Cache the return value.
+
 2024-05-23  Bruno Haible  <bruno@clisp.org>
 
        mbrtoc32: Work around bug in Cygwin 3.5.3.
index afbc188ad7d76b2996c3b622ec8181982955a544..ad9e4ad11d4a7310230e236e81589cff36e10f90 100644 (file)
@@ -1,5 +1,5 @@
 /* Conversion between the current locale's character encoding and Unicode.
-   Copyright (C) 2023 Free Software Foundation, Inc.
+   Copyright (C) 2023-2024 Free Software Foundation, Inc.
 
    This file is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as
@@ -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)
     {