mirror of
https://github.com/davatorium/rofi.git
synced 2025-02-17 15:45:56 -05:00
Undo last commit, seems to be unneeded
This commit is contained in:
parent
5e05472619
commit
65dd080154
1 changed files with 3 additions and 6 deletions
|
@ -2322,14 +2322,11 @@ 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_CTYPE , "" ) == NULL ) {
|
if ( setlocale ( LC_ALL, "" ) == NULL ) {
|
||||||
fprintf ( stderr, "Failed to set locale for character classification.\n" );
|
fprintf ( stderr, "Failed to set locale.\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 () ) {
|
||||||
fprintf ( stderr, "X11 does not support locales\n" );
|
fprintf ( stderr, "X11 does not support locales\n" );
|
||||||
return 11;
|
return 11;
|
||||||
|
|
Loading…
Add table
Reference in a new issue