]> granicus.if.org Git - php/commitdiff
* Forgot to add the test.
authorMoriyoshi Koizumi <moriyoshi@php.net>
Mon, 2 Feb 2009 04:52:00 +0000 (04:52 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Mon, 2 Feb 2009 04:52:00 +0000 (04:52 +0000)
ext/mbstring/tests/bug46843.phpt [new file with mode: 0644]

diff --git a/ext/mbstring/tests/bug46843.phpt b/ext/mbstring/tests/bug46843.phpt
new file mode 100644 (file)
index 0000000..136195c
--- /dev/null
@@ -0,0 +1,12 @@
+--TEST--
+Bug #46843 (CP936 euro symbol is not converted properly)
+--SKIPIF--
+<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
+--FILE--
+<?php
+var_dump(bin2hex(mb_convert_encoding("\x80", 'UCS-2BE', 'CP936')));
+var_dump(bin2hex(mb_convert_encoding("\x20\xac", 'CP936', 'UCS-2BE')));
+?>
+--EXPECT--
+string(4) "20ac"
+string(2) "80"