freebsd-ports/x11/aterm/files/patch-aa
Jim Mock a19eea0561 Add support for Russian characters.
Submitted by:	Oleg Dashevskii <od@iclub.nsu.ru>
2001-04-16 15:47:58 +00:00

43 lines
1.0 KiB
Plaintext

--- src/command.c.orig Sun May 28 03:46:35 2000
+++ src/command.c Mon Apr 16 11:34:38 2001
@@ -67,12 +67,18 @@
#ifndef NO_XLOCALE
# if (XtSpecificationRelease < 6)
# define NO_XLOCALE
-# else
-# define X_LOCALE
-# include <X11/Xlocale.h>
# endif
#endif /* NO_XLOCALE */
+#ifndef NO_XSETLOCALE
+# define X_LOCALE
+# include <X11/Xlocale.h>
+#else
+# ifndef NO_SETLOCALE
+# include <locale.h>
+# endif
+#endif /* NO_XLOCALE */
+
#ifdef TTY_GID_SUPPORT
# include <grp.h>
#endif
@@ -528,7 +534,7 @@
ttydev = tty_name;
# define PTYCHAR1 "pqrstuvwxyz"
-# define PTYCHAR2 "0123456789abcdef"
+# define PTYCHAR2 "0123456789abcdefghijklmnopqrstuvwxyz"
for (c1 = PTYCHAR1; *c1; c1++) {
ptydev[len - 2] = ttydev[len - 2] = *c1;
for (c2 = PTYCHAR2; *c2; c2++) {
@@ -1206,7 +1212,7 @@
Input_Context = NULL;
-# ifndef NO_SETLOCALE
+# if !defined(NO_SETLOCALE) || !defined(NO_XSETLOCALE)
setlocale(LC_CTYPE, ""); /* XXX: should we do this? */
# endif
if (rs_inputMethod == NULL || !*rs_inputMethod) {