On Fri, 22 Sep 2023 01:12:04 +0900
Takashi Yano wrote:
> I wonder why the following code throws std::runtime_error
> even though the LC_ALL is set to valid locale other than "C".
> This does not occur only when LC_ALL is set to "C".
> 
> #include <locale>
> int main()
> {
>       std::locale("");
>       return 0;
> }
> 
> In linux, this occurs only when the LC_ALL is set to invalid
> locale (i.e. locale that is not registered in system).

Similarly,
std::locale("ja_JP.UTF-8")
throws std::runtime_error in cygwin.

-- 
Takashi Yano <takashi.y...@nifty.ne.jp>

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to