Skip to content

Commit f9826fb

Browse files
committed
All bytes are valid in KOI8-U encoding
1 parent 9db4387 commit f9826fb

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

ext/mbstring/libmbfl/filters/mbfilter_koi8u.c

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
#include "mbfilter_koi8u.h"
2929
#include "unicode_table_koi8u.h"
3030

31-
static int mbfl_filt_ident_koi8u(int c, mbfl_identify_filter *filter);
32-
3331
static const char *mbfl_encoding_koi8u_aliases[] = {"KOI8-U", "KOI8U", NULL};
3432

3533
const mbfl_encoding mbfl_encoding_koi8u = {
@@ -46,7 +44,7 @@ const mbfl_encoding mbfl_encoding_koi8u = {
4644
const struct mbfl_identify_vtbl vtbl_identify_koi8u = {
4745
mbfl_no_encoding_koi8u,
4846
mbfl_filt_ident_common_ctor,
49-
mbfl_filt_ident_koi8u
47+
mbfl_filt_ident_true
5048
};
5149

5250
const struct mbfl_convert_vtbl vtbl_wchar_koi8u = {
@@ -132,12 +130,3 @@ mbfl_filt_conv_wchar_koi8u(int c, mbfl_convert_filter *filter)
132130

133131
return c;
134132
}
135-
136-
static int mbfl_filt_ident_koi8u(int c, mbfl_identify_filter *filter)
137-
{
138-
if (c >= 0x80 && c < 0xff)
139-
filter->flag = 0;
140-
else
141-
filter->flag = 1; /* not it */
142-
return c;
143-
}

0 commit comments

Comments
 (0)