1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 08:58:28 +02:00

All bytes are valid in CP866 encoding

This commit is contained in:
Alex Dowad
2020-10-18 16:25:55 +02:00
parent 0b13305ccc
commit bc04e0cc6d
+1 -12
View File
@@ -31,8 +31,6 @@
#include "mbfilter_cp866.h"
#include "unicode_table_cp866.h"
static int mbfl_filt_ident_cp866(int c, mbfl_identify_filter *filter);
static const char *mbfl_encoding_cp866_aliases[] = {"CP866", "CP-866", "IBM866", "IBM-866", NULL};
const mbfl_encoding mbfl_encoding_cp866 = {
@@ -49,7 +47,7 @@ const mbfl_encoding mbfl_encoding_cp866 = {
const struct mbfl_identify_vtbl vtbl_identify_cp866 = {
mbfl_no_encoding_cp866,
mbfl_filt_ident_common_ctor,
mbfl_filt_ident_cp866
mbfl_filt_ident_true
};
const struct mbfl_convert_vtbl vtbl_wchar_cp866 = {
@@ -135,12 +133,3 @@ mbfl_filt_conv_wchar_cp866(int c, mbfl_convert_filter *filter)
return c;
}
static int mbfl_filt_ident_cp866(int c, mbfl_identify_filter *filter)
{
if (c >= 0x80 && c < 0xff)
filter->flag = 0;
else
filter->flag = 1; /* not it */
return c;
}