[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gettext] [bug #54479] libintl_setlocale(LC_ALL, "") fails under
From: |
Dapeng Gao |
Subject: |
Re: [bug-gettext] [bug #54479] libintl_setlocale(LC_ALL, "") fails under some locales in macOS |
Date: |
Sat, 11 Aug 2018 11:28:55 +0800 |
User-agent: |
NeoMutt/20180716-171-eb8b46 |
Hi Roumen,
I wrote the following program to test these cases:
#include <stdio.h>
#include <stdlib.h>
#include <locale.h>
int main() {
printf("%s\n", setlocale(LC_ALL, "en_US.UTF-8"));
printf("%s\n", setlocale(LC_ALL, NULL));
return 0;
}
In this particular case (locale = "en_US.UTF-8"), `setlocale`
successfully set the locale and returned "en_US.UTF-8". However, both of
the other cases failed and returned NULL.
Best wishes,
Dapeng Gao