comparison src/print.c @ 52164:809050824a8f

(print_string): Fix printing of multibyte string with nontrivial printcharfun.
author Andreas Schwab <schwab@suse.de>
date Fri, 08 Aug 2003 22:45:18 +0000
parents 87dced6b77d2
children 695cf19ef79e
comparison
equal deleted inserted replaced
52163:0306a6f7d0f4 52164:809050824a8f
504 GCPRO1 (string); 504 GCPRO1 (string);
505 if (size == size_byte) 505 if (size == size_byte)
506 for (i = 0; i < size; i++) 506 for (i = 0; i < size; i++)
507 PRINTCHAR (SREF (string, i)); 507 PRINTCHAR (SREF (string, i));
508 else 508 else
509 for (i = 0; i < size_byte; i++) 509 for (i = 0; i < size_byte; )
510 { 510 {
511 /* Here, we must convert each multi-byte form to the 511 /* Here, we must convert each multi-byte form to the
512 corresponding character code before handing it to PRINTCHAR. */ 512 corresponding character code before handing it to PRINTCHAR. */
513 int len; 513 int len;
514 int ch = STRING_CHAR_AND_LENGTH (SDATA (string) + i, 514 int ch = STRING_CHAR_AND_LENGTH (SDATA (string) + i,