src/psl2c.c: Also include UTF-8 into DAFSA output
This commit is contained in:
parent
2677621b62
commit
44e6bd4eb8
10
src/psl2c.c
10
src/psl2c.c
|
@ -153,11 +153,6 @@ static void _print_psl_entries_dafsa(FILE *fpout, const _psl_vector_t *v)
|
||||||
if ((fp = fopen("in.tmp", "w"))) {
|
if ((fp = fopen("in.tmp", "w"))) {
|
||||||
for (it = 0; it < v->cur; it++) {
|
for (it = 0; it < v->cur; it++) {
|
||||||
_psl_entry_t *e = _vector_get(v, it);
|
_psl_entry_t *e = _vector_get(v, it);
|
||||||
unsigned char *s = (unsigned char *)e->label_buf;
|
|
||||||
|
|
||||||
/* search for non-ASCII label and skip it */
|
|
||||||
while (*s && *s < 128) s++;
|
|
||||||
if (*s) continue;
|
|
||||||
|
|
||||||
fprintf(fp, "%s, %X\n", e->label_buf, (int) (e->flags & 0x0F));
|
fprintf(fp, "%s, %X\n", e->label_buf, (int) (e->flags & 0x0F));
|
||||||
}
|
}
|
||||||
|
@ -191,11 +186,6 @@ static int _print_psl_entries_dafsa_binary(const char *fname, const _psl_vector_
|
||||||
if ((fp = fopen("in.tmp", "w"))) {
|
if ((fp = fopen("in.tmp", "w"))) {
|
||||||
for (it = 0; it < v->cur; it++) {
|
for (it = 0; it < v->cur; it++) {
|
||||||
_psl_entry_t *e = _vector_get(v, it);
|
_psl_entry_t *e = _vector_get(v, it);
|
||||||
unsigned char *s = (unsigned char *)e->label_buf;
|
|
||||||
|
|
||||||
/* search for non-ASCII label and skip it */
|
|
||||||
while (*s && *s < 128) s++;
|
|
||||||
if (*s) continue;
|
|
||||||
|
|
||||||
fprintf(fp, "%s, %X\n", e->label_buf, (int) (e->flags & 0x0F));
|
fprintf(fp, "%s, %X\n", e->label_buf, (int) (e->flags & 0x0F));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue