summaryrefslogtreecommitdiff
path: root/insertbom.c
diff options
context:
space:
mode:
Diffstat (limited to 'insertbom.c')
-rw-r--r--insertbom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/insertbom.c b/insertbom.c
index 7d45fae..0f0298c 100644
--- a/insertbom.c
+++ b/insertbom.c
@@ -39,7 +39,7 @@ static void Handle(const char *name)
return;
}
- if (buff[0] == 0 && isprint(buff[1]))
+ if (buff[0] == 0 && isascii(buff[1]))
{
printf("%s: Guessing BE UTF-16\n", name);
write = 1;
@@ -47,7 +47,7 @@ static void Handle(const char *name)
buff[0] = 0xfe;
buff[1] = 0xff;
}
- else if (buff[1] == 0 && isprint(buff[0]))
+ else if (buff[1] == 0 && isascii(buff[0]))
{
printf("%s: Guessing LE UTF-16\n", name);
write = 1;