diff options
| author | Kenichi Handa | 2010-11-01 13:09:26 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2010-11-01 13:09:26 +0900 |
| commit | b18fad6db4efeda274dcb36706a4146650570e6b (patch) | |
| tree | 5534ead2ed9b34b021ac3e92c88cf70350f26351 /src/coding.c | |
| parent | 0269bd906626243b117136d6ea9eb98d2947b9f8 (diff) | |
| download | emacs-b18fad6db4efeda274dcb36706a4146650570e6b.tar.gz emacs-b18fad6db4efeda274dcb36706a4146650570e6b.zip | |
Handle glyphless characters on tty.
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/coding.c b/src/coding.c index 7a3bc40b9c7..59deb22a3d7 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -9297,7 +9297,8 @@ DEFUN ("set-terminal-coding-system-internal", Fset_terminal_coding_system_intern | |||
| 9297 | doc: /* Internal use only. */) | 9297 | doc: /* Internal use only. */) |
| 9298 | (Lisp_Object coding_system, Lisp_Object terminal) | 9298 | (Lisp_Object coding_system, Lisp_Object terminal) |
| 9299 | { | 9299 | { |
| 9300 | struct coding_system *terminal_coding = TERMINAL_TERMINAL_CODING (get_terminal (terminal, 1)); | 9300 | struct terminal *term = get_terminal (terminal, 1); |
| 9301 | struct coding_system *terminal_coding = TERMINAL_TERMINAL_CODING (term); | ||
| 9301 | CHECK_SYMBOL (coding_system); | 9302 | CHECK_SYMBOL (coding_system); |
| 9302 | setup_coding_system (Fcheck_coding_system (coding_system), terminal_coding); | 9303 | setup_coding_system (Fcheck_coding_system (coding_system), terminal_coding); |
| 9303 | /* We had better not send unsafe characters to terminal. */ | 9304 | /* We had better not send unsafe characters to terminal. */ |
| @@ -9306,6 +9307,10 @@ DEFUN ("set-terminal-coding-system-internal", Fset_terminal_coding_system_intern | |||
| 9306 | terminal_coding->common_flags &= ~CODING_ANNOTATE_COMPOSITION_MASK; | 9307 | terminal_coding->common_flags &= ~CODING_ANNOTATE_COMPOSITION_MASK; |
| 9307 | terminal_coding->src_multibyte = 1; | 9308 | terminal_coding->src_multibyte = 1; |
| 9308 | terminal_coding->dst_multibyte = 0; | 9309 | terminal_coding->dst_multibyte = 0; |
| 9310 | if (terminal_coding->common_flags & CODING_REQUIRE_ENCODING_MASK) | ||
| 9311 | term->charset_list = coding_charset_list (terminal_coding); | ||
| 9312 | else | ||
| 9313 | term->charset_list = Fcons (Qascii, Qnil); | ||
| 9309 | return Qnil; | 9314 | return Qnil; |
| 9310 | } | 9315 | } |
| 9311 | 9316 | ||