From: Wez Furlong Date: Tue, 28 Aug 2001 18:26:46 +0000 (+0000) Subject: fix cp1252 -> wchar conversion X-Git-Tag: PRE_SUBST_Z_MACROS~320 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9a8c9439e89a290729f49a314feb178a60f82328;p=php fix cp1252 -> wchar conversion --- diff --git a/ext/mbstring/mbfilter.c b/ext/mbstring/mbfilter.c index 20c4932c4e..50f9abbf9d 100644 --- a/ext/mbstring/mbfilter.c +++ b/ext/mbstring/mbfilter.c @@ -4159,15 +4159,8 @@ mbfl_filt_conv_cp1252_wchar(int c, mbfl_convert_filter *filter) if (c >= 0x80 && c < 0xa0) { s = cp1252_ucs_table[c - 0x80]; - if (s <= 0) { - s = c; - s &= MBFL_WCSPLANE_MASK; - s |= MBFL_WCSPLANE_8859_1; - } } else { s = c; - s &= MBFL_WCSGROUP_MASK; - s |= MBFL_WCSGROUP_THROUGH; } CK((*filter->output_function)(s, filter->data));