[latex3-commits] [git/LaTeX3-latex3-latex2e] master: non UTF-8 filenames for issue #48 (93b375e)

David Carlisle d.p.carlisle at gmail.com
Fri May 11 10:00:56 CEST 2018


Repository : https://github.com/latex3/latex2e
On branch  : master
Link       : https://github.com/latex3/latex2e/commit/93b375e40e3dbfd57093e5b527be1d357a942a99

>---------------------------------------------------------------

commit 93b375e40e3dbfd57093e5b527be1d357a942a99
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Fri May 11 09:00:26 2018 +0100

    non UTF-8 filenames for issue #48


>---------------------------------------------------------------

93b375e40e3dbfd57093e5b527be1d357a942a99
 base/changes.txt     |   18 ++++++++++++++++++
 base/ltfinal.dtx     |   15 +++++++++++----
 base/ltvers.dtx      |    2 +-
 doc/latexchanges.tex |    7 +++++++
 4 files changed, 37 insertions(+), 5 deletions(-)

diff --git a/base/changes.txt b/base/changes.txt
index 51741d1..0bc0f55 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -5,6 +5,24 @@ are not part of the distribution.
 =======================================================================
 
 #########################
+# 2018-04-01 PL 5 Release
+#########################
+
+2018-05-11  David Carlisle  <David.Carlisle at latex-project.org>
+
+	* ltfinal.dtx: Make \UTFviii at undefined@err and \UTFviii at invalid@err
+	also safe for initial file name for invalid UTF-8 and non-UTF-8 filesystems.
+        issue #48
+	
+2018-05-08  David Carlisle  <David.Carlisle at latex-project.org>
+
+	* ltclass.dtx:
+	    Update to suspicious rollback code for issue #43
+            Make the suspicious rollback message a warning not error.
+            Make the current and latest options to latexrelease set the
+            default rollback request to 0 so package rollback is disabled.
+
+#########################
 # 2018-04-01 PL 4 Release
 #########################
 
diff --git a/base/ltfinal.dtx b/base/ltfinal.dtx
index 01ea82c..0cc4e69 100644
--- a/base/ltfinal.dtx
+++ b/base/ltfinal.dtx
@@ -33,7 +33,7 @@
 %<*driver>
 % \fi
 \ProvidesFile{ltfinal.dtx}
-             [2018/04/08 v2.1d LaTeX Kernel (Final Settings)]
+             [2018/05/11 v2.1e LaTeX Kernel (Final Settings)]
 % \iffalse
 \documentclass{ltxdoc}
 \GetFileInfo{ltfinal.dtx}
@@ -650,16 +650,23 @@
 %  \end{macro}
 %
 % \changes{v2.1d}{2018/04/08}{Delay full UTF-8 handling to \cs{everyjob}}
+% \changes{v2.18}{2018/05/11}{Make invalit UTF-8 also safe, for legacy filesystem encodings}
 %    \begin{macrocode}
 \edef\inputencodingname{utf8}%
 \input{utf8.def}
+\let\UTFviii at undefined@err@@\UTFviii at undefined@err
+\let\UTFviii at invalid@err@@\UTFviii at invalid@err
 \let\UTFviii at two@octets@@\UTFviii at two@octets
 \let\UTFviii at three@octets@@\UTFviii at three@octets
 \let\UTFviii at four@octets@@\UTFviii at four@octets
-%<2ekernel>\long\def\UTFviii at two@octets#1#2{\string#1\string#2}
-%<2ekernel>\long\def\UTFviii at three@octets#1#2#3{\string#1\string#2\string#3}
-%<2ekernel>\long\def\UTFviii at four@octets#1#2#3#4{\string#1\string#2\string#3\string#4}
+%<2ekernel>\def\UTFviii at undefined@err#1{\@gobble#1}%
+%<2ekernel>\let\UTFviii at invalid@err\string
+%<2ekernel>\let\UTFviii at two@octets\string
+%<2ekernel>\let\UTFviii at three@octets\string
+%<2ekernel>\let\UTFviii at four@octets\string
 %<2ekernel>\everyjob\expandafter{\the\everyjob
+%<2ekernel>\let\UTFviii at undefined@err\UTFviii at undefined@err@@
+%<2ekernel>\let\UTFviii at invalid@err\UTFviii at invalid@err@@
 %<2ekernel>\let\UTFviii at two@octets\UTFviii at two@octets@@
 %<2ekernel>\let\UTFviii at three@octets\UTFviii at three@octets@@
 %<2ekernel>\let\UTFviii at four@octets\UTFviii at four@octets@@
diff --git a/base/ltvers.dtx b/base/ltvers.dtx
index 351e838..cb20769 100644
--- a/base/ltvers.dtx
+++ b/base/ltvers.dtx
@@ -115,7 +115,7 @@
    {2018-04-01}
 %</2ekernel|latexrelease>
 %<*2ekernel>
-\def\patch at level{-5}
+\def\patch at level{5}
 %    \end{macrocode}
 % \end{macro}
 % \end{macro}
diff --git a/doc/latexchanges.tex b/doc/latexchanges.tex
index b41d98a..f05060d 100644
--- a/doc/latexchanges.tex
+++ b/doc/latexchanges.tex
@@ -72,6 +72,13 @@ policy. Improvements and bug fixes will be made to the format sources,
 with the \Lpack{latexrelease} package being available to revert
 changes to use definitions from an earlier format.
 
+\section{Changes  introduced in 2018-04-01 patch~5}
+Improved support for non ASCII filenames on the commandline on
+filesystems using legacy encodings.
+
+Adjusted the new package rollback code so that some edge cases where rollback
+can not be guaranteed become a warning not an error.
+
 \section{Changes  introduced in 2018-04-01 patch~4}
 No changes to the format, but \texttt{docstrip} adjusted so that non-ASCII
 \texttt{.ins} files work with the new UTF-8 defaults.





More information about the latex3-commits mailing list