[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#319237: xterm should be built with IUTF8 support (for correct tty cooked mode)



On 2005-07-20 18:30:39 +0200, Vincent Lefevre wrote:
> The xterm source knows about IUTF8, but for some reasons xterm is not
> built with IUTF8 support.

I managed to compile xterm from upstream and IUTF8 support with
the attached patch. Not sure about side effects or portability
or missing features or whatever, though.

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA
diff -ru xterm-203/main.c xterm-new/main.c
--- xterm-203/main.c	2005-07-07 02:46:14.000000000 +0200
+++ xterm-new/main.c	2005-07-26 14:45:21.000000000 +0200
@@ -162,11 +162,6 @@
 #define USE_SYSV_PGRP
 #define USE_SYSV_SIGNALS
 #define WTMP
-#ifdef __GLIBC__
-#if (__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 1))
-#include <pty.h>
-#endif
-#endif
 #endif
 
 #ifdef __MVS__
diff -ru xterm-203/xterm_io.h xterm-new/xterm_io.h
--- xterm-203/xterm_io.h	2005-07-07 02:46:15.000000000 +0200
+++ xterm-new/xterm_io.h	2005-07-26 14:45:07.000000000 +0200
@@ -128,8 +128,6 @@
  */
 #ifdef __QNX__
 #include <ioctl.h>
-#elif !defined(__CYGWIN__)
-#include <sys/ioctl.h>
 #endif
 
 /*
@@ -138,7 +136,7 @@
 #if defined(USE_POSIX_TERMIOS)
 #include <termios.h>
 #elif defined(USE_TERMIOS)
-#include <termios.h>
+#include <linux/termios.h>
 /* this hacked termios support only works on SYSV */
 #define USE_ANY_SYSV_TERMIO
 #define termio termios

Reply to: