]> granicus.if.org Git - php/commitdiff
- Fix bug #46843 (CP936 euro symbol is not converted properly)
authorMoriyoshi Koizumi <moriyoshi@php.net>
Mon, 2 Feb 2009 04:49:48 +0000 (04:49 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Mon, 2 Feb 2009 04:49:48 +0000 (04:49 +0000)
ext/mbstring/libmbfl/filters/mbfilter_cp936.c

index 9cdd0520e848dad77da09de94c798d5073fa3f11..561dc3003bd1e4325ee3e9e2dab5deb3835499f4 100644 (file)
@@ -192,7 +192,7 @@ mbfl_filt_conv_wchar_cp936(int c, mbfl_convert_filter *filter)
                }
        }
        if (s >= 0) {
-               if (s < 0x80) { /* latin */
+               if (s <= 0x80) {        /* latin */
                        CK((*filter->output_function)(s, filter->data));
                } else {
                        CK((*filter->output_function)((s >> 8) & 0xff, filter->data));