#include "mbfilter_iso8859_3.h"
#include "unicode_table_iso8859_3.h"
+static int mbfl_filt_ident_iso8859_3(int c, mbfl_identify_filter *filter);
+
static const char *mbfl_encoding_8859_3_aliases[] = {"ISO8859-3", "latin3", NULL};
const mbfl_encoding mbfl_encoding_8859_3 = {
const struct mbfl_identify_vtbl vtbl_identify_8859_3 = {
mbfl_no_encoding_8859_3,
mbfl_filt_ident_common_ctor,
- mbfl_filt_ident_true
+ mbfl_filt_ident_iso8859_3
};
const struct mbfl_convert_vtbl vtbl_8859_3_wchar = {
return c;
}
+
+static int mbfl_filt_ident_iso8859_3(int c, mbfl_identify_filter *filter)
+{
+ if (c >= 0xA0 && !iso8859_3_ucs_table[c - 0xA0]) {
+ filter->status = 1;
+ }
+ return c;
+}