texlive[55082] Build/source/texk/ptexenc: ptexenc: Fix a bug of end
commits+takuji at tug.org
commits+takuji at tug.org
Sun May 10 02:22:44 CEST 2020
Revision: 55082
http://tug.org/svn/texlive?view=revision&revision=55082
Author: takuji
Date: 2020-05-10 02:22:44 +0200 (Sun, 10 May 2020)
Log Message:
-----------
ptexenc: Fix a bug of end of line in input_line2()
Modified Paths:
--------------
trunk/Build/source/texk/ptexenc/ChangeLog
trunk/Build/source/texk/ptexenc/ptexenc.c
Modified: trunk/Build/source/texk/ptexenc/ChangeLog
===================================================================
--- trunk/Build/source/texk/ptexenc/ChangeLog 2020-05-09 23:53:29 UTC (rev 55081)
+++ trunk/Build/source/texk/ptexenc/ChangeLog 2020-05-10 00:22:44 UTC (rev 55082)
@@ -1,3 +1,8 @@
+2020-05-10 Hironori Kitagawa <h_kitagawa2001 at yahoo.co.jp>
+
+ * ptexenc.c: Fix a bug of end of line in input_line2().
+ https://github.com/texjporg/tex-jp-build/issues/100
+
2020-04-10 Karl Berry <karl at tug.org>
* version.ac: now 1.3.9/dev since TL'19 is released.
Modified: trunk/Build/source/texk/ptexenc/ptexenc.c
===================================================================
--- trunk/Build/source/texk/ptexenc/ptexenc.c 2020-05-09 23:53:29 UTC (rev 55081)
+++ trunk/Build/source/texk/ptexenc/ptexenc.c 2020-05-10 00:22:44 UTC (rev 55082)
@@ -822,7 +822,7 @@
}
}
- buffer[last] = '\0';
+ if (i != EOF || first != last) buffer[last] = '\0';
if (i == EOF || i == '\n' || i == '\r') injis = false;
if (lastchar != NULL) *lastchar = i;
More information about the tex-live-commits
mailing list.