setup the locale on the X server on start

This commit is contained in:
Dana Jansens 2003-01-13 01:41:06 +00:00
parent 8b73f6f025
commit 120ed7a650

View file

@ -100,7 +100,11 @@ line argument.\n\n"));
printf(_("Couldn't mark display connection as close-on-exec.\n\n"));
::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
XSetErrorHandler(xerrorHandler);