From 4a4229213a59016e35a7abdac5cea91d4fcbb178 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 25 Nov 1999 21:45:54 +0000 Subject: Update. 1999-11-25 Ulrich Drepper * iconv/gconv.c (__gconv): Always initialize cd->__data[last_step].__outbuf and cd->__data[last_step].__outbufend. * iconvdata/iso-2022-kr.c (EMIT_SHIFT_TO_INIT): Update number of written bytes. * iconvdata/iso-2022-jp.c: Likewise. --- iconvdata/iso-2022-kr.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'iconvdata/iso-2022-kr.c') diff --git a/iconvdata/iso-2022-kr.c b/iconvdata/iso-2022-kr.c index 178753f..8c1d88b 100644 --- a/iconvdata/iso-2022-kr.c +++ b/iconvdata/iso-2022-kr.c @@ -92,6 +92,8 @@ enum { \ /* Write out the shift sequence. */ \ *outbuf++ = SI; \ + if (data->__is_last) \ + *written += 1; \ data->__outbuf = outbuf; \ data->__statep->count = ASCII_set; \ } \ -- cgit v1.1