From 8a801e3792a6e85d537b2f53c26b0ef987e3c397 Mon Sep 17 00:00:00 2001 From: tomo Date: Thu, 24 Jun 1999 08:11:44 +0000 Subject: [PATCH] (mule_decode): Setup `str->ccl.last_block'. (mule_encode): Likewise. --- src/file-coding.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/file-coding.c b/src/file-coding.c index 7a7eee3..02854c7 100644 --- a/src/file-coding.c +++ b/src/file-coding.c @@ -2116,6 +2116,7 @@ mule_decode (Lstream *decoding, CONST unsigned char *src, decode_coding_utf8 (decoding, src, dst, n); break; case CODESYS_CCL: + str->ccl.last_block = str->flags & CODING_STATE_END; ccl_driver (&str->ccl, src, dst, n, 0, CCL_MODE_DECODING); break; case CODESYS_ISO2022: @@ -2528,6 +2529,7 @@ mule_encode (Lstream *encoding, CONST unsigned char *src, encode_coding_utf8 (encoding, src, dst, n); break; case CODESYS_CCL: + str->ccl.last_block = str->flags & CODING_STATE_END; ccl_driver (&str->ccl, src, dst, n, 0, CCL_MODE_ENCODING); break; case CODESYS_ISO2022: -- 1.7.10.4