diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-11-25 21:45:54 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-11-25 21:45:54 +0000 |
commit | 4a4229213a59016e35a7abdac5cea91d4fcbb178 (patch) | |
tree | a40f47f99553083ad9658ea10dd64cf875514c7f /iconvdata/iso-2022-jp.c | |
parent | c559a3ca84a0258e4773571ae73fa7bba4c927b0 (diff) | |
download | glibc-4a4229213a59016e35a7abdac5cea91d4fcbb178.tar.gz glibc-4a4229213a59016e35a7abdac5cea91d4fcbb178.tar.xz glibc-4a4229213a59016e35a7abdac5cea91d4fcbb178.zip |
Update.
1999-11-25 Ulrich Drepper <drepper@cygnus.com> * 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.
Diffstat (limited to 'iconvdata/iso-2022-jp.c')
-rw-r--r-- | iconvdata/iso-2022-jp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/iconvdata/iso-2022-jp.c b/iconvdata/iso-2022-jp.c index 669b65afae..a3c9f7d354 100644 --- a/iconvdata/iso-2022-jp.c +++ b/iconvdata/iso-2022-jp.c @@ -212,6 +212,8 @@ gconv_end (struct __gconv_step *data) *outbuf++ = ESC; \ *outbuf++ = '('; \ *outbuf++ = 'B'; \ + if (data->__is_last) \ + *written += 3; \ data->__outbuf = outbuf; \ /* Note that this also clears the G2 designation. */ \ data->__statep->count = ASCII_set; \ |