From 12e4647debb6016da2063feed7516ad835fffd08 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Tue, 10 Jul 2012 15:09:31 -0700 Subject: [PATCH] Remove the old utf8_mode thing. Let's just plan on being fully utf8 some day. We're not there yet, and maybe we'll never be, but having the halfway mode is not useful either. Signed-off-by: Linus Torvalds --- estruct.h | 1 - posix.c | 17 ----------------- 2 files changed, 18 deletions(-) diff --git a/estruct.h b/estruct.h index 5c5576f..61de40b 100644 --- a/estruct.h +++ b/estruct.h @@ -483,7 +483,6 @@ struct buffer { #define MDMAGIC 0x0040 /* regular expresions in search */ #define MDCRYPT 0x0080 /* encrytion mode active */ #define MDASAVE 0x0100 /* auto-save mode */ -#define MDUTF8 0x0200 /* UTF-8 input/output mode */ /* * The starting position of a region, and the size of the region in diff --git a/posix.c b/posix.c index 25307f4..c33b286 100644 --- a/posix.c +++ b/posix.c @@ -30,20 +30,6 @@ #define XCASE 0000004 #endif -/* - * NOTE NOTE NOTE! - * - * Uemacs is currently very much byte-oriented, and not at all UTF8-aware - * interally. However, this allows it to understand a _terminal_ that is - * in utf-8 mode, and will turn input into the 8-bit subset, and will turn - * things back into UTF8 on output. - * - * Do _not_ confuse this with the notion of actually being able to edit - * UTF-8 file _contents_. That's a totally different thing. - */ -#define utf8_mode() \ - (curwp && curwp->w_bufp && (curwp->w_bufp->b_mode & MDUTF8)) - static int kbdflgs; /* saved keyboard fd flags */ static int kbdpoll; /* in O_NDELAY mode */ @@ -220,9 +206,6 @@ int ttgetc(void) return 128+27; } - if (!utf8_mode()) - goto done; - /* Normal 7-bit? */ if (!(c & 0x80)) goto done;