Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
f2ba40be
Commit
f2ba40be
authored
May 23, 2000
by
Kenichi Handa
Browse files
(encode_terminal_code): Set coding->src_multibyte properly.
parent
3d80f24d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/term.c
src/term.c
+4
-0
No files found.
src/term.c
View file @
f2ba40be
...
@@ -972,11 +972,13 @@ encode_terminal_code (src, dst, src_len, dst_len, consumed)
...
@@ -972,11 +972,13 @@ encode_terminal_code (src, dst, src_len, dst_len, consumed)
{
{
len = 1;
len = 1;
buf = " ";
buf = " ";
coding->src_multibyte = 0;
}
}
else
else
{
{
len = CHAR_STRING (src->u.ch, workbuf);
len = CHAR_STRING (src->u.ch, workbuf);
buf = workbuf;
buf = workbuf;
coding->src_multibyte = 1;
}
}
}
}
else
else
...
@@ -993,12 +995,14 @@ encode_terminal_code (src, dst, src_len, dst_len, consumed)
...
@@ -993,12 +995,14 @@ encode_terminal_code (src, dst, src_len, dst_len, consumed)
workbuf[0] = FAST_GLYPH_CHAR (g);
workbuf[0] = FAST_GLYPH_CHAR (g);
len = 1;
len = 1;
buf = workbuf;
buf = workbuf;
coding->src_multibyte = 0;
}
}
else
else
{
{
/* We have a string in Vglyph_table. */
/* We have a string in Vglyph_table. */
len = GLYPH_LENGTH (tbase, g);
len = GLYPH_LENGTH (tbase, g);
buf = GLYPH_STRING (tbase, g);
buf = GLYPH_STRING (tbase, g);
coding->src_multibyte = STRING_MULTIBYTE (tbase[g]);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment