std::locale breakage on MacOS 10.6 with LANG=en_US.UTF-8

后端 未结 5 2297
你的背包
你的背包 2020-12-06 01:12

I have a C++ application that I am porting to MacOSX (specifically, 10.6). The app makes heavy use of the C++ standard library and boost. I recently observed some breakage i

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-06 01:42

    I had the same problem, checked LANG and LC_MESSAGES and they are not set when you lunch the application through Finder, so the following lines saved the day:

    unset("LANG");
    unset("LC_MESSAGES");
    

提交回复
热议问题