Had tried following code in Linux, but always return \'C\' under different LANG settings.
LANG
#include #include #i
The default constructor of std::locale creates a copy of the global C++ locale.
std::locale
So to get the name of the current locale:
std::cout << std::locale().name() << '\n';