[latex3-commits] [git/LaTeX3-latex3-latex2e] master: more hex printing as suggested in PR #82 (b9a6f1f)
David Carlisle
d.p.carlisle at gmail.com
Fri Oct 5 22:27:26 CEST 2018
Repository : https://github.com/latex3/latex2e
On branch : master
Link : https://github.com/latex3/latex2e/commit/b9a6f1fc59567b0abb0bbdb58a05da28f3770942
>---------------------------------------------------------------
commit b9a6f1fc59567b0abb0bbdb58a05da28f3770942
Author: David Carlisle <d.p.carlisle at gmail.com>
Date: Fri Oct 5 21:27:26 2018 +0100
more hex printing as suggested in PR #82
>---------------------------------------------------------------
b9a6f1fc59567b0abb0bbdb58a05da28f3770942
base/changes.txt | 4 ++++
base/testfiles/tlb-utf8-undec-cp1252.tlg | 2 +-
base/utf8ienc.dtx | 5 +++--
3 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/base/changes.txt b/base/changes.txt
index 74859af..c7b4fe6 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -4,6 +4,10 @@ completeness or accuracy and it contains some references to files that
are not part of the distribution.
=======================================================================
+2018-10-05 David Carlisle <David.Carlisle at latex-project.org>
+
+ * utf8ienc.dtx: Use hex in invalid byte error (suggested in PR 82 from mirabilos)
+
2018-09-30 David Carlisle <David.Carlisle at latex-project.org>
* utf8ienc.dtx: Fix display of codepoints in error messages (PR 63 from mirabilos)
diff --git a/base/testfiles/tlb-utf8-undec-cp1252.tlg b/base/testfiles/tlb-utf8-undec-cp1252.tlg
index dad92c3..03fd189 100644
--- a/base/testfiles/tlb-utf8-undec-cp1252.tlg
+++ b/base/testfiles/tlb-utf8-undec-cp1252.tlg
@@ -9,7 +9,7 @@ l. ...a^^d6 ^^93
x^^94 ^^df
You may provide a definition with
\DeclareUnicodeCharacter
-! Package inputenc Error: Invalid UTF-8 byte 148.
+! Package inputenc Error: Invalid UTF-8 byte "94.
See the inputenc package documentation for explanation.
Type H <return> for immediate help.
...
diff --git a/base/utf8ienc.dtx b/base/utf8ienc.dtx
index 5f5f7c9..993f59c 100644
--- a/base/utf8ienc.dtx
+++ b/base/utf8ienc.dtx
@@ -217,7 +217,7 @@
%<+ts1> \ProvidesFile{ts1enc.dfu}
%<+x2> \ProvidesFile{x2enc.dfu}
%<+all> \ProvidesFile{utf8enc.dfu}
- [2018/09/28 v1.2e UTF-8 support for inputenc]
+ [2018/10/05 v1.2f UTF-8 support for inputenc]
% \end{macrocode}
%
% \begin{macrocode}
@@ -323,9 +323,10 @@
% \begin{macro}{\UTFviii at invalid@err}
% \begin{macro}{\UTFviii at invalid@help}
% \changes{v1.2a}{2018/03/24}{Macro added}%
+% \changes{v1.2f}{2018/10/05}{Show invalid byte in hex}%
% \begin{macrocode}
\def\UTFviii at invalid@err#1{%
- \PackageError{inputenc}{Invalid UTF-8 byte \number`#1}%
+ \PackageError{inputenc}{Invalid UTF-8 byte "\UTFviii at hexnumber{`#1}}%
\UTFviii at invalid@help}
% \end{macrocode}
%
More information about the latex3-commits
mailing list