1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2025-07-31 21:59:25 -04:00

Set LC_CTYPE and LC_COLLATE instead of LC_ALL

This commit is contained in:
Dave Davenport 2015-11-22 20:55:48 +01:00
parent 4510f65d5a
commit 5e05472619

View file

@ -2322,8 +2322,12 @@ int main ( int argc, char *argv[] )
display_str = getenv ( "DISPLAY" ); display_str = getenv ( "DISPLAY" );
find_arg_str ( "-display", &display_str ); find_arg_str ( "-display", &display_str );
if ( setlocale ( LC_ALL, "" ) == NULL ) { if ( setlocale ( LC_CTYPE , "" ) == NULL ) {
fprintf ( stderr, "Failed to set locale.\n" ); fprintf ( stderr, "Failed to set locale for character classification.\n" );
return EXIT_FAILURE;
}
if ( setlocale ( LC_COLLATE, "" ) == NULL ) {
fprintf ( stderr, "Failed to set locale for collating.\n" );
return EXIT_FAILURE; return EXIT_FAILURE;
} }
if ( !XSupportsLocale () ) { if ( !XSupportsLocale () ) {