1
0
mirror of https://github.com/rfivet/uemacs.git synced 2025-11-23 11:41:15 -05:00

Add support for a "utf-8" mode

NOTE! MicroEmacs is very much a byte-based editor, and the new utf-8
support is purely an issue of terminal input and output.  The file
contents themselves are in the 8-bit space.  In that space, Unicode is
the same as Latin1.

The new mode is called "utf-8", and is enabled automatically by the
new emacs.rc when $LANG contains the substring "UTF-8".

I'm sure people would like to some day also edit real UTF-8 contents,
rather than just edit old 8-bit Latin1 contents in a UTF-8 terminal.
However, that's an independent (and much bigger and thornier) issue.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Linus Torvalds
2005-10-02 17:47:28 -07:00
parent 0fc43a8429
commit f313bcf64a
4 changed files with 103 additions and 5 deletions

View File

@@ -282,4 +282,8 @@ bind-to-key newline ^J
!endif
!endif
!if &gre &sin $LANG "UTF-8" 0
add-global-mode "utf-8"
!endif
set $discmd "TRUE"