bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dfa MT-safe?


From: Bruno Haible
Subject: Re: dfa MT-safe?
Date: Sun, 15 Dec 2019 01:42:48 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-166-generic; KDE/5.18.0; x86_64; ; )

Paul Eggert wrote:
> Is the fix to call uselocale (0) rather than setlocale (LC_ALL, NULL), on
> platforms that have uselocale?

It's an interesting thought. But
  * In order to get the global locale, you would need to do three calls to
    uselocale:
      locale_t loc = uselocale (NULL);
      locale_t global = uselocale (LC_GLOBAL_LOCALE);
      uselocale (loc);
  * It won't work, because uselocale does not exist or does not work on some
    of the listed platforms: NetBSD, Haiku, MSVC.

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]