From kwaclaw at users.sourceforge.net Tue Apr 19 20:25:11 2005 From: kwaclaw at users.sourceforge.net (Karl Waclawek) Date: Tue Apr 19 20:25:15 2005 Subject: [Expat-checkins] expat/xmlwf codepage.c,1.11,1.12 Message-ID: Update of /cvsroot/expat/expat/xmlwf In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16046 Modified Files: codepage.c Log Message: Fix for bug #1023646. Index: codepage.c =================================================================== RCS file: /cvsroot/expat/expat/xmlwf/codepage.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- codepage.c 1 Jul 2002 15:13:00 -0000 1.11 +++ codepage.c 19 Apr 2005 18:25:08 -0000 1.12 @@ -20,12 +20,12 @@ for (i = 0; i < 256; i++) map[i] = -1; if (info.MaxCharSize > 1) { - for (i = 0; i < MAX_LEADBYTES; i++) { + for (i = 0; i < MAX_LEADBYTES; i+=2) { int j, lim; if (info.LeadByte[i] == 0 && info.LeadByte[i + 1] == 0) break; lim = info.LeadByte[i + 1]; - for (j = info.LeadByte[i]; j < lim; j++) + for (j = info.LeadByte[i]; j <= lim; j++) map[j] = -2; } }