Skip to content

Commit 048f6cb

Browse files
committedJul 18, 2022
Fix legacy conversion filter for JIS
1 parent 91969e9 commit 048f6cb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎ext/mbstring/libmbfl/filters/mbfilter_jis.c

+5
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,11 @@ static int mbfl_filt_conv_jis_wchar_flush(mbfl_convert_filter *filter)
271271
* or else escape sequence was truncated */
272272
CK((*filter->output_function)(MBFL_BAD_INPUT, filter->data));
273273
}
274+
275+
if (filter->flush_function) {
276+
(*filter->flush_function)(filter->data);
277+
}
278+
274279
return 0;
275280
}
276281

0 commit comments

Comments
 (0)