std::locale
std::locale
- Subject: std::locale
- From: Andreas Grosam <email@hidden>
- Date: Sat, 6 Feb 2010 20:36:10 +0100
Why is there still no proper support for locales within Apple's C++ compiler?
#include <locale>
#include <iostream>
int main (int argc, const char * argv[])
{
try {
std::locale loc("en_US.UTF-8");
}
catch (std::exception& ex) {
std::cout << ex.what() << std::endl;
}
return 0;
}
This program will fail (on Mac OS X, when compiled with Apple's C++ compiler) with the message:
locale::facet::_S_create_c_locale name not valid
It seems, in Mac OS X using Apple's C++ compiler, only the bare minimum locale "C" and "POSIX" are supported. Or is there just something I have overlooked in the meantime - the lack of this feature exist for that long now.
Honestly, no locale support beyond "C" is not sufficient for a more or less up to date C++ compiler - despite the fact that there are also system specific APIs and alternatives available.
kind regards,
Andreas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden