mirror of
https://github.com/php/php-src.git
synced 2026-04-02 21:52:36 +02:00
- Flag truncated multi-byte characters as erroneous. - Don't allow ASCII control characters to appear in the middle of a multi-byte character. - There was a bug whereby some unrecognized Unicode codepoints would be passed through unchanged to the output when converting Unicode to EUC-CN. - Stick to the original EUC-CN standard, rather than CP936 (an extended version invented by MS).
17 lines
359 B
PHP
17 lines
359 B
PHP
--TEST--
|
|
Exhaustive test of verification and conversion of EUC-CN text
|
|
--EXTENSIONS--
|
|
mbstring
|
|
--SKIPIF--
|
|
<?php
|
|
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
include('encoding_tests.inc');
|
|
testEncodingFromUTF16ConversionTable(__DIR__ . '/data/EUC-CN.txt', 'EUC-CN');
|
|
?>
|
|
--EXPECT--
|
|
Tested EUC-CN -> UTF-16BE
|
|
Tested UTF-16BE -> EUC-CN
|