With unset locale: setlocale(LC_ALL, NULL): C std::locale("").name(): With setlocale(LC_ALL, ""): setlocale(LC_ALL, NULL): en_US.UTF-8 std::locale("").name():