Skip to content

Commit 0a8c007

Browse files
committed
Fix conversion of EUC-JP-2004 text (and add test suite)
- Truncated multi-byte characters are treated as an error now - Invalid multi-byte characters are treated as an error rather than being quietly swallowed - ASCII control characters are not allowed to appear in the middle of a multi-byte character
1 parent 069a9fa commit 0a8c007

File tree

4 files changed

+11678
-147
lines changed

4 files changed

+11678
-147
lines changed

ext/mbstring/libmbfl/filters/mbfilter_euc_jp_2004.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const struct mbfl_convert_vtbl vtbl_eucjp2004_wchar = {
5252
mbfl_filt_conv_common_ctor,
5353
NULL,
5454
mbfl_filt_conv_jis2004_wchar,
55-
mbfl_filt_conv_common_flush,
55+
mbfl_filt_conv_jis2004_wchar_flush,
5656
NULL,
5757
};
5858

0 commit comments

Comments
 (0)