Skip to content

Commit

Permalink
Fix conversion of EUC-JP-2004 text (and add test suite)
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
alexdowad committed Jul 5, 2021
1 parent 069a9fa commit 0a8c007
Show file tree
Hide file tree
Showing 4 changed files with 11,678 additions and 147 deletions.
2 changes: 1 addition & 1 deletion ext/mbstring/libmbfl/filters/mbfilter_euc_jp_2004.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const struct mbfl_convert_vtbl vtbl_eucjp2004_wchar = {
mbfl_filt_conv_common_ctor,
NULL,
mbfl_filt_conv_jis2004_wchar,
mbfl_filt_conv_common_flush,
mbfl_filt_conv_jis2004_wchar_flush,
NULL,
};

Expand Down

0 comments on commit 0a8c007

Please sign in to comment.