--- src/main.c	Tue Apr 20 02:46:37 1999
+++ src/main.c.my	Mon Jul 19 14:13:18 1999
@@ -38,6 +38,7 @@
 #ifdef HAVE_UNISTD_H
 # include <unistd.h>
 #endif
+
 #include <ctype.h>
 #include <X11/cursorfont.h>
 #include <X11/keysym.h>
@@ -46,6 +47,10 @@
 #include <X11/Xatom.h>
 #include <X11/Xos.h>
 
+#if defined(HAVE_LOCALE_H) && defined(USE_XT)
+#include <locale.h>
+#endif
+
 #include "command.h"
 #include "feature.h"
 #include "../libmej/debug.h"	/* from libmej */
@@ -349,6 +354,13 @@
 #else
   XSetErrorHandler((XErrorHandler) xerror_handler);
 #endif
+
+/* Locale patch */
+#if defined(HAVE_LOCALE_H) && defined(USE_XT)
+  setlocale(LC_ALL, "");
+  XtSetLanguageProc(NULL, NULL, NULL);
+#endif
+/* Locale patch end */
 
   /* Since we always use Imlib now, let's initialize it here. */
   imlib_id = Imlib_init(Xdisplay);

