summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/source/texk/web2c/lib/ChangeLog2
-rw-r--r--Build/source/texk/web2c/lib/texmfmp.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/lib/ChangeLog b/Build/source/texk/web2c/lib/ChangeLog
index b47b80e9b8e..a0ea61120ec 100644
--- a/Build/source/texk/web2c/lib/ChangeLog
+++ b/Build/source/texk/web2c/lib/ChangeLog
@@ -1,4 +1,4 @@
-2016-01-25 Akira Kakuto <kakuto@fuk.kinidai.ac.jp>
+2016-01-26 Akira Kakuto <kakuto@fuk.kinidai.ac.jp>
* texmfmp.c: Improve to skip BOM (win32 only).
diff --git a/Build/source/texk/web2c/lib/texmfmp.c b/Build/source/texk/web2c/lib/texmfmp.c
index bc912276052..b5242e2d372 100644
--- a/Build/source/texk/web2c/lib/texmfmp.c
+++ b/Build/source/texk/web2c/lib/texmfmp.c
@@ -2304,7 +2304,8 @@ input_line (FILE *f)
else {
k3 = getc (f);
k4 = getc (f);
- if (k1 == 0xef && k2 == 0xbb && k3 == 0xbf && (0 <= k4 <= 0x7e)) /* UTF-8 */
+ if (k1 == 0xef && k2 == 0xbb && k3 == 0xbf &&
+ k4 >= 0 && k4 <= 0x7e) /* UTF-8 */
ungetc (k4, f);
else
rewind (f);