Fix ASCII check in src/psl2c.c
This commit is contained in:
parent
58a4f6c028
commit
896f7f6ae4
|
@ -36,7 +36,6 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <ctype.h>
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#ifdef HAVE_ALLOCA_H
|
#ifdef HAVE_ALLOCA_H
|
||||||
# include <alloca.h>
|
# include <alloca.h>
|
||||||
|
@ -92,7 +91,7 @@ static void _print_psl_entries(FILE *fpout, const _psl_vector_t *v, const char *
|
||||||
#if !defined(WITH_LIBICU) && !defined(WITH_IDN2)
|
#if !defined(WITH_LIBICU) && !defined(WITH_IDN2)
|
||||||
static int _str_needs_encoding(const char *s)
|
static int _str_needs_encoding(const char *s)
|
||||||
{
|
{
|
||||||
while (*s > 0) s++;
|
while (*s && *((unsigned char *)s) < 128) s++;
|
||||||
|
|
||||||
return !!*s;
|
return !!*s;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue