From 1661e56b9c4a0c3248f214987b6bcae053c80428 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Fri, 8 Aug 2003 22:45:48 +0000 Subject: [PATCH] (print_string): Fix printing of multibyte string with nontrivial printcharfun. --- src/ChangeLog | 5 +++++ src/print.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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. */ -- 2.39.2