setup the locale on the X server on start
This commit is contained in:
parent
8b73f6f025
commit
120ed7a650
1 changed files with 5 additions and 1 deletions
|
@ -100,6 +100,10 @@ line argument.\n\n"));
|
||||||
printf(_("Couldn't mark display connection as close-on-exec.\n\n"));
|
printf(_("Couldn't mark display connection as close-on-exec.\n\n"));
|
||||||
::exit(1);
|
::exit(1);
|
||||||
}
|
}
|
||||||
|
if (! XSupportsLocale())
|
||||||
|
printf(_("X server does not support locale.\n"));
|
||||||
|
if (XSetLocaleModifiers("") == NULL)
|
||||||
|
printf(_("Cannot set locale modifiers for the X server.\n"));
|
||||||
|
|
||||||
// set our error handler for X errors
|
// set our error handler for X errors
|
||||||
XSetErrorHandler(xerrorHandler);
|
XSetErrorHandler(xerrorHandler);
|
||||||
|
|
Loading…
Reference in a new issue