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>
This commit is contained in:
Linus Torvalds 2012-07-10 15:09:31 -07:00
parent cee00b0efb
commit 12e4647deb
2 changed files with 0 additions and 18 deletions

View File

@ -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

17
posix.c
View File

@ -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;