]> git.eshelyaron.com Git - emacs.git/commitdiff
(print_string): Fix printing of multibyte string with
authorAndreas Schwab <schwab@suse.de>
Fri, 8 Aug 2003 22:45:48 +0000 (22:45 +0000)
committerAndreas Schwab <schwab@suse.de>
Fri, 8 Aug 2003 22:45:48 +0000 (22:45 +0000)
nontrivial printcharfun.

src/ChangeLog
src/print.c

index 6c92bf7cd88ec7cca43eaa9eb62dc2e5404bfe83..9221e1a1d458d8aee64e0256dbbee25439f9777e 100644 (file)
@@ -1,3 +1,8 @@
+2003-08-09  Andreas Schwab  <schwab@suse.de>
+
+       * print.c (print_string): Fix printing of multibyte string with
+       nontrivial printcharfun.
+
 2003-07-31  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
 
        * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
index e06b8a0052dce812723fd1c11fd71bdfd0042d93..2aaec788699b74e42af078e383f936ccf62a41d5 100644 (file)
@@ -506,7 +506,7 @@ print_string (string, printcharfun)
        for (i = 0; i < size; i++)
          PRINTCHAR (SREF (string, i));
       else
-       for (i = 0; i < size_byte; i++)
+       for (i = 0; i < size_byte; )
          {
            /* Here, we must convert each multi-byte form to the
               corresponding character code before handing it to PRINTCHAR.  */