]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(EMIT_SHIFT_TO_INIT): Update number of written bytes.
authorUlrich Drepper <drepper@redhat.com>
Fri, 26 Nov 1999 06:16:50 +0000 (06:16 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 26 Nov 1999 06:16:50 +0000 (06:16 +0000)
iconvdata/iso-2022-jp.c
iconvdata/iso-2022-kr.c

index e3b81202f5994f843d8be9df1ebbc98dd43d5b1e..e116b919b38f9d7622a3b87ab85d3e19bc57eb74 100644 (file)
@@ -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;                                \
index a0c213cdfe972438acd6a946345f604451baea08..eefdf55d03b5f4c11df8a89cac2e365ebbcaac6e 100644 (file)
@@ -91,6 +91,8 @@ enum
            {                                                                 \
              /* Write out the shift sequence.  */                            \
              *outbuf++ = SI;                                                 \
+             if (data->__is_last)                                            \
+               *written += 1;                                                \
              data->outbuf = outbuf;                                          \
              data->statep->count = ASCII_set;                                \
            }                                                                 \