diff --git a/src/util/locale_utils.cc b/src/util/locale_utils.cc index 5c758dc..307ad49 100644 --- a/src/util/locale_utils.cc +++ b/src/util/locale_utils.cc @@ -31,7 +31,8 @@ void assert_utf8_locale( void ) { /* Verify locale calls for UTF-8 */ - if ( strcmp( nl_langinfo( CODESET ), "UTF-8" ) != 0 ) { + if ( strcmp( nl_langinfo( CODESET ), "UTF-8" ) != 0 && + strcmp( nl_langinfo( CODESET ), "utf-8" ) != 0 ) { fprintf( stderr, "mosh requires a UTF-8 locale.\n" ); exit( 1 ); }