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
d366d2e4
Commit
d366d2e4
authored
Dec 15, 1998
by
Kenichi Handa
Browse files
(printchar): Outputting multibyte characters
to echo area always makes it multibyte.
parent
c7e3eb8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
src/print.c
src/print.c
+9
-3
No files found.
src/print.c
View file @
d366d2e4
...
...
@@ -434,12 +434,18 @@ printchar (ch, fun)
printbufidx
--
;
}
bcopy
(
tembuf
,
FRAME_MESSAGE_BUF
(
mini_frame
),
printbufidx
);
message_enable_multibyte
=
1
;
}
/* Record whether the message buffer is multibyte.
(If at any point some multibyte characters are added, then it is.) */
if
(
len
>
0
&&
!
NILP
(
current_buffer
->
enable_multibyte_characters
))
message_enable_multibyte
=
1
;
if
(
printbufidx
<
FRAME_MESSAGE_BUF_SIZE
(
mini_frame
)
-
len
)
bcopy
(
str
,
&
FRAME_MESSAGE_BUF
(
mini_frame
)[
printbufidx
],
len
),
printbufidx
+=
len
;
{
bcopy
(
str
,
&
FRAME_MESSAGE_BUF
(
mini_frame
)[
printbufidx
],
len
);
printbufidx
+=
len
;
}
FRAME_MESSAGE_BUF
(
mini_frame
)[
printbufidx
]
=
0
;
echo_area_glyphs_length
=
printbufidx
;
...
...
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