From: Andreas Schwab Date: Fri, 8 Aug 2003 22:45:48 +0000 (+0000) Subject: (print_string): Fix printing of multibyte string with X-Git-Tag: ttn-vms-21-2-B4~9135 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1661e56b9c4a0c3248f214987b6bcae053c80428;p=emacs.git (print_string): Fix printing of multibyte string with nontrivial printcharfun. --- diff --git a/src/ChangeLog b/src/ChangeLog index 6c92bf7cd88..9221e1a1d45 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2003-08-09 Andreas Schwab + + * print.c (print_string): Fix printing of multibyte string with + nontrivial printcharfun. + 2003-07-31 Jan Dj,Ad(Brv * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2. diff --git a/src/print.c b/src/print.c index e06b8a0052d..2aaec788699 100644 --- a/src/print.c +++ b/src/print.c @@ -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. */