setup the locale on the X server on start
Dana Jansens danakj@orodu.net
1 files changed,
5 insertions(+),
1 deletions(-)
jump to
M
otk/display.cc
→
otk/display.cc
@@ -100,7 +100,11 @@ if (fcntl(ConnectionNumber(display), F_SETFD, 1) == -1) {
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);