aboutsummaryrefslogtreecommitdiffstats
path: root/src/term.c
diff options
context:
space:
mode:
authorMiles Bader2004-12-08 05:02:30 +0000
committerMiles Bader2004-12-08 05:02:30 +0000
commit000fc2b1fad05ccd9e6cdb5810febb091f4b5738 (patch)
tree808f1473847c7c44bc8b28d8edfa086ec25035d1 /src/term.c
parent5bc63b073c3c75dbfab1f14423f01cc615e26eeb (diff)
parentad136a7c3b310fa7240dd2adf62f23b454782bd0 (diff)
downloademacs-000fc2b1fad05ccd9e6cdb5810febb091f4b5738.tar.gz
emacs-000fc2b1fad05ccd9e6cdb5810febb091f4b5738.zip
Revision: miles@gnu.org--gnu-2004/emacs--unicode--0--patch-74
Merge from emacs--cvs-trunk--0 Patches applied: * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-709 Update from CVS: src/indent.c (Fvertical_motion): Fix last change. * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-710 - miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-715 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-716 Merge from gnus--rel--5.10 * miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-74 Update from CVS
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/term.c b/src/term.c
index 609efcb8439..1520a96babd 100644
--- a/src/term.c
+++ b/src/term.c
@@ -954,9 +954,14 @@ write_glyphs (string, len)
954 954
955 cmplus (len); 955 cmplus (len);
956 956
957 /* If terminal_coding does any conversion, use it, otherwise use
958 safe_terminal_coding. We can't use CODING_REQUIRE_ENCODING here
959 because it always return 1 if the member src_multibyte is 1. */
960 coding = (terminal_coding.common_flags & CODING_REQUIRE_ENCODING_MASK
961 ? &terminal_coding : &safe_terminal_coding);
957 /* The mode bit CODING_MODE_LAST_BLOCK should be set to 1 only at 962 /* The mode bit CODING_MODE_LAST_BLOCK should be set to 1 only at
958 the tail. */ 963 the tail. */
959 terminal_coding.mode &= ~CODING_MODE_LAST_BLOCK; 964 coding->mode &= ~CODING_MODE_LAST_BLOCK;
960 965
961 while (len > 0) 966 while (len > 0)
962 { 967 {
@@ -1006,6 +1011,9 @@ insert_glyphs (start, len)
1006 char *buf; 1011 char *buf;
1007 struct glyph *glyph = NULL; 1012 struct glyph *glyph = NULL;
1008 struct frame *f, *sf; 1013 struct frame *f, *sf;
1014 unsigned char *conversion_buffer;
1015 unsigned char space[1];
1016 struct coding_system *coding;
1009 1017
1010 if (len <= 0) 1018 if (len <= 0)
1011 return; 1019 return;
@@ -2239,6 +2247,8 @@ term_init (terminal_type)
2239 int status; 2247 int status;
2240 struct frame *sf = XFRAME (selected_frame); 2248 struct frame *sf = XFRAME (selected_frame);
2241 2249
2250 encode_terminal_bufsize = 0;
2251
2242#ifdef WINDOWSNT 2252#ifdef WINDOWSNT
2243 initialize_w32_display (); 2253 initialize_w32_display ();
2244 2254