diff --git a/source/rofi.c b/source/rofi.c index acfb0b82..dfa6d986 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -34,6 +34,7 @@ #include #include #include +#include #include #include #include @@ -2321,6 +2322,10 @@ int main ( int argc, char *argv[] ) display_str = getenv ( "DISPLAY" ); find_arg_str ( "-display", &display_str ); + if ( setlocale ( LC_ALL, "" ) == NULL ) { + fprintf ( stderr, "Failed to set locale.\n" ); + return EXIT_FAILURE; + } if ( !XSupportsLocale () ) { fprintf ( stderr, "X11 does not support locales\n" ); return 11;