diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-01-26 00:16:00 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-01-26 00:16:00 +0000 |
commit | 857b8bcc39ab102f19e91646530a35b645af8992 (patch) | |
tree | d5a7444cb3726b058253b69359f959f00a934bc9 /Build | |
parent | 29850d0f30ddc415ee1ef6c5dad09671e12f924c (diff) |
texmfmp.c: improve to skip BOM (win32 only).
git-svn-id: svn://tug.org/texlive/trunk@39479 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/texk/web2c/lib/ChangeLog | 2 | ||||
-rw-r--r-- | Build/source/texk/web2c/lib/texmfmp.c | 3 |
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); |