From 42d6443faf5e8b5c70474923bfcc021b77ee0095 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Thu, 24 Jul 2014 17:32:56 +0200 Subject: Don't emit invalid extra shift character at block boundary by iconv (bug 17197) --- iconvdata/ibm937.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iconvdata/ibm937.c') diff --git a/iconvdata/ibm937.c b/iconvdata/ibm937.c index 6fe5b11316..8cba11a0e9 100644 --- a/iconvdata/ibm937.c +++ b/iconvdata/ibm937.c @@ -260,6 +260,7 @@ enum break; \ } \ *outptr++ = SI; \ + curcs = sb; \ } \ \ if (__glibc_unlikely (outptr + 1 > outend)) \ @@ -268,7 +269,6 @@ enum break; \ } \ *outptr++ = cp[0]; \ - curcs = sb; \ } \ \ /* Now that we wrote the output increment the input pointer. */ \ -- cgit 1.4.1