
#include <locale>
#include <iostream>

int main(int argc, const char* argv[])
{
	std::cout << "name of current global locale: " << std::locale().name() << "\n";
	std::cout << "name of classic C locale: " << std::locale::classic().name() << "\n";
	std::cout << "name of \"user's preferred locale\": " << std::locale("").name () << "\n";

	std::cout.imbue( std::locale( "fr" ) );
	std::cerr.imbue( std::locale( "en_US" ) );

	std::cout << "fr: " << 1.1 << std::endl;
	std::cerr << "us: " << 1.1 << std::endl;
	return 0;
}

