diff options
| author | Kenichi Handa | 1998-12-15 10:41:44 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1998-12-15 10:41:44 +0000 |
| commit | d366d2e41b62f50811e228426906c2efc01e40ca (patch) | |
| tree | 069c3dfe9faddc79bb3e5a97886216a3a5dd3c18 | |
| parent | c7e3eb8b1b0209954131eccddba483cdd95ee824 (diff) | |
| download | emacs-d366d2e41b62f50811e228426906c2efc01e40ca.tar.gz emacs-d366d2e41b62f50811e228426906c2efc01e40ca.zip | |
(printchar): Outputting multibyte characters
to echo area always makes it multibyte.
| -rw-r--r-- | src/print.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/print.c b/src/print.c index 3723c79b6dd..9b24f989830 100644 --- a/src/print.c +++ b/src/print.c | |||
| @@ -434,12 +434,18 @@ printchar (ch, fun) | |||
| 434 | printbufidx--; | 434 | printbufidx--; |
| 435 | } | 435 | } |
| 436 | bcopy (tembuf, FRAME_MESSAGE_BUF (mini_frame), printbufidx); | 436 | bcopy (tembuf, FRAME_MESSAGE_BUF (mini_frame), printbufidx); |
| 437 | message_enable_multibyte = 1; | ||
| 438 | } | 437 | } |
| 439 | 438 | ||
| 439 | /* Record whether the message buffer is multibyte. | ||
| 440 | (If at any point some multibyte characters are added, then it is.) */ | ||
| 441 | if (len > 0 && ! NILP (current_buffer->enable_multibyte_characters)) | ||
| 442 | message_enable_multibyte = 1; | ||
| 443 | |||
| 440 | if (printbufidx < FRAME_MESSAGE_BUF_SIZE (mini_frame) - len) | 444 | if (printbufidx < FRAME_MESSAGE_BUF_SIZE (mini_frame) - len) |
| 441 | bcopy (str, &FRAME_MESSAGE_BUF (mini_frame)[printbufidx], len), | 445 | { |
| 442 | printbufidx += len; | 446 | bcopy (str, &FRAME_MESSAGE_BUF (mini_frame)[printbufidx], len); |
| 447 | printbufidx += len; | ||
| 448 | } | ||
| 443 | FRAME_MESSAGE_BUF (mini_frame)[printbufidx] = 0; | 449 | FRAME_MESSAGE_BUF (mini_frame)[printbufidx] = 0; |
| 444 | echo_area_glyphs_length = printbufidx; | 450 | echo_area_glyphs_length = printbufidx; |
| 445 | 451 | ||