Questions tagged [xlocale]

3 questions
8
votes
2 answers

Setting locales on OS X crashes

The following code works fine on Linux but throws an exception on OS X 10.7: #include #include #include int main() try { std::locale::global(std::locale("")); std::cout << "Using locale: " <<…
Konrad Rudolph
  • 530,221
  • 131
  • 937
  • 1,214
5
votes
2 answers

xlocale broken on OS X?

I have a simple program that tests converting between wchar_t and char using a series of locales passed to it on the command line. It outputs a list of the conversions that fail by printing out the locale name and the string that failed to…
bames53
  • 86,085
  • 15
  • 179
  • 244
1
vote
0 answers

How portable is a software using xlocale API? Is it available on the major platforms (Linux, Windows, iOS, Android, OS X)?

According to: https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man3/xlocale.3.html xlocale.h provides extended locale support by allowing per-thread locale setups in C. Additionally, alongside wchar.h provides…