From: Kenichi Handa Date: Wed, 15 Jan 2003 06:26:26 +0000 (+0000) Subject: (message_dolog): Fix bug of the case that *Message* X-Git-Tag: emacs-pretest-21.2.94~12 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f4f1127a6d878037f12089c0b33a779c75709939;p=emacs.git (message_dolog): Fix bug of the case that *Message* buffer is unibyte. --- diff --git a/src/ChangeLog b/src/ChangeLog index 24ab322ebe9..3b382bf06d4 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2003-01-15 Kenichi Handa + + * xdisp.c (message_dolog): Fix bug of the case that *Message* + buffer is unibyte. + 2003-01-13 Francesco Potort,Al(B * fileio.c (Fdelete_directory, Fdelete_file): Document the diff --git a/src/xdisp.c b/src/xdisp.c index 70d590c30bf..fff45ae4335 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -5683,7 +5683,7 @@ message_dolog (m, nbytes, nlflag, multibyte) /* Convert a multibyte string to single-byte for the *Message* buffer. */ - for (i = 0; i < nbytes; i += nbytes) + for (i = 0; i < nbytes; i += char_bytes) { c = string_char_and_length (m + i, nbytes - i, &char_bytes); work[0] = (SINGLE_BYTE_CHAR_P (c)