[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gettext] Fix for get_lcid (localename.c) required on Windows
From: |
Bruno Haible |
Subject: |
Re: [bug-gettext] Fix for get_lcid (localename.c) required on Windows |
Date: |
Tue, 30 Apr 2019 20:08:05 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-141-generic; KDE/5.18.0; x86_64; ; ) |
Hi Michele,
> By inspecting this issue, I found that this patch fixes it:
>
> --- a/gettext-runtime/intl/localename.c
> +++ b/gettext-runtime/intl/localename.c
> @@ -2604,6 +2604,10 @@ get_lcid (const char *locale_name)
> static LCID last_lcid;
> static char last_locale[1000];
>
> + if (locale_name == NULL)
> + {
> + return 0;
> + }
> /* Lock while looking for an LCID, to protect access to static
> variables: last_lcid, last_locale, found_lcid, and lname. */
> gl_lock_lock (get_lcid_lock);
Thanks for the report and fix. I appreciate it.
I just fixed this issue in essentially the same way, 3 days ago:
https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=00991ec9b670feb41b3726f1d7e7ff59b95e1317
Bruno