]> git.eshelyaron.com Git - emacs.git/commitdiff
(message_dolog): Fix bug of the case that *Message*
authorKenichi Handa <handa@m17n.org>
Wed, 15 Jan 2003 06:26:26 +0000 (06:26 +0000)
committerKenichi Handa <handa@m17n.org>
Wed, 15 Jan 2003 06:26:26 +0000 (06:26 +0000)
buffer is unibyte.

src/ChangeLog
src/xdisp.c

index 24ab322ebe9d297d8b260a8f862eba1f76d9e631..3b382bf06d4431709a248db95a1f3e71df198ce4 100644 (file)
@@ -1,3 +1,8 @@
+2003-01-15  Kenichi Handa  <handa@m17n.org>
+
+       * xdisp.c (message_dolog): Fix bug of the case that *Message*
+       buffer is unibyte.
+
 2003-01-13  Francesco Potort\e,Al\e(B  <pot@gnu.org>
 
        * fileio.c (Fdelete_directory, Fdelete_file): Document the
index 70d590c30bf372766f632567be164eb7907112d9..fff45ae433591d3439e873438f8a522fe4ea2683 100644 (file)
@@ -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)