diff --git a/src/main.cpp b/src/main.cpp index d18814c4ae3d5..9de952a51640e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -578,6 +578,9 @@ int main( int argc, char *argv[] ) } #endif + DebugLog( D_INFO, DC_ALL ) << "[main] C locale set to " << setlocale( LC_ALL, nullptr ); + DebugLog( D_INFO, DC_ALL ) << "[main] C++ locale set to " << std::locale().name(); + #if defined(TILES) SDL_version compiled; SDL_VERSION( &compiled ); diff --git a/src/options.cpp b/src/options.cpp index aa939df391d97..b5fd69c21412e 100644 --- a/src/options.cpp +++ b/src/options.cpp @@ -3130,4 +3130,7 @@ void options_manager::update_global_locale() } catch( std::runtime_error &e ) { std::locale::global( std::locale() ); } + + DebugLog( D_INFO, DC_ALL ) << "[options] C locale set to " << setlocale( LC_ALL, nullptr ); + DebugLog( D_INFO, DC_ALL ) << "[options] C++ locale set to " << std::locale().name(); } diff --git a/src/translations.cpp b/src/translations.cpp index cfd8eb4764add..488b9abab45d2 100644 --- a/src/translations.cpp +++ b/src/translations.cpp @@ -207,6 +207,8 @@ void set_language() if( setlocale( LC_ALL, ".1252" ) == nullptr ) { DebugLog( D_WARNING, D_MAIN ) << "Error while setlocale(LC_ALL, '.1252')."; } + DebugLog( D_INFO, DC_ALL ) << "[translations] C locale set to " << setlocale( LC_ALL, nullptr ); + DebugLog( D_INFO, DC_ALL ) << "[translations] C++ locale set to " << std::locale().name(); #endif // Step 2. Bind to gettext domain.