aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-07-10 15:09:31 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2012-07-10 15:09:31 -0700
commit12e4647debb6016da2063feed7516ad835fffd08 (patch)
tree0ec62a9466b640f60de2ecb9be3ff94d94fdc553
parentcee00b0efb86c583a10f478a1d7d5b4b5a530a88 (diff)
downloaduemacs-12e4647debb6016da2063feed7516ad835fffd08.tar.gz
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 <torvalds@linux-foundation.org>
-rw-r--r--estruct.h1
-rw-r--r--posix.c17
2 files changed, 0 insertions, 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;