From 33ae4040ea242ff5cddb64da2e0294cbb688ec94 Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Tue, 14 Feb 2012 12:38:08 +0000 Subject: bibtex8, bibtexu: Accept both CR and LF as end-of-line git-svn-id: svn://tug.org/texlive/trunk@25393 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/bibtex8/ChangeLog | 4 ++++ Build/source/texk/bibtex8/bibtex.c | 2 +- Build/source/texk/bibtexu/ChangeLog | 4 ++++ Build/source/texk/bibtexu/bibtex.c | 2 +- Build/source/texk/web2c/lib/ChangeLog | 4 ++++ Build/source/texk/web2c/lib/eofeoln.c | 4 ++-- 6 files changed, 16 insertions(+), 4 deletions(-) (limited to 'Build/source') diff --git a/Build/source/texk/bibtex8/ChangeLog b/Build/source/texk/bibtex8/ChangeLog index ef69271851f..1554111be8a 100644 --- a/Build/source/texk/bibtex8/ChangeLog +++ b/Build/source/texk/bibtex8/ChangeLog @@ -1,3 +1,7 @@ +2012-02-14 Peter Breitenlohner + + * bibtex.c (eoln): Accept both CR and LF as end-of-line. + 2011-12-06 Peter Breitenlohner * Makefile.am: Replace ${prefix}/texmf => $(datarootdir)/texmf. diff --git a/Build/source/texk/bibtex8/bibtex.c b/Build/source/texk/bibtex8/bibtex.c index 204083b3888..6d0c596fac6 100644 --- a/Build/source/texk/bibtex8/bibtex.c +++ b/Build/source/texk/bibtex8/bibtex.c @@ -190,7 +190,7 @@ BEGIN BEGIN (void) ungetc (c, file_pointer); END - if (c == '\n' || c == EOF) + if (c == '\n' || c == '\r' || c == EOF) BEGIN return (TRUE); END diff --git a/Build/source/texk/bibtexu/ChangeLog b/Build/source/texk/bibtexu/ChangeLog index 973198d78da..65252938e0e 100644 --- a/Build/source/texk/bibtexu/ChangeLog +++ b/Build/source/texk/bibtexu/ChangeLog @@ -1,3 +1,7 @@ +2012-02-14 Peter Breitenlohner + + * bibtex.c (eoln): Accept both CR and LF as end-of-line. + 2011-12-06 Peter Breitenlohner * Makefile.am: Replace ${prefix}/texmf => $(datarootdir)/texmf. diff --git a/Build/source/texk/bibtexu/bibtex.c b/Build/source/texk/bibtexu/bibtex.c index 7fb13f7b358..f540f7aa77e 100644 --- a/Build/source/texk/bibtexu/bibtex.c +++ b/Build/source/texk/bibtexu/bibtex.c @@ -199,7 +199,7 @@ BEGIN BEGIN (void) ungetc (c, file_pointer); END - if (c == '\n' || c == EOF) + if (c == '\n' || c == '\r' || c == EOF) BEGIN return (TRUE); END diff --git a/Build/source/texk/web2c/lib/ChangeLog b/Build/source/texk/web2c/lib/ChangeLog index c06e1fe7651..4eee4d5d44b 100644 --- a/Build/source/texk/web2c/lib/ChangeLog +++ b/Build/source/texk/web2c/lib/ChangeLog @@ -1,3 +1,7 @@ +2012-02-14 Peter Breitenlohner + + * eofeoln.c (eof): Fix a typo in comment. + 2012-01-30 Peter Breitenlohner * printversion.c, texmfmp.c: Drop report of file offset bits. diff --git a/Build/source/texk/web2c/lib/eofeoln.c b/Build/source/texk/web2c/lib/eofeoln.c index 457bbfca41c..1930df9051a 100644 --- a/Build/source/texk/web2c/lib/eofeoln.c +++ b/Build/source/texk/web2c/lib/eofeoln.c @@ -12,8 +12,8 @@ eof (FILE *file) { register int c; - /* If FILE doesn't exist, return false. This happens when, for - example, when a user does `mft foo.mf' -- there's no change file, + /* If FILE doesn't exist, return true. This happens, for example, + when a user does `mft foo.mf' -- there's no change file, so we never open it, so we end up calling this with a null pointer. */ if (!file) return true; -- cgit v1.2.3