[latex3-commits] [git/LaTeX3-latex3-latex2e] TL21-2-kernel-msgs: make utf8inputenc kernel errors (hope I got them all) (580f96ee)

Frank Mittelbach frank.mittelbach at latex-project.org
Tue Jun 8 22:55:53 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : TL21-2-kernel-msgs
Link       : https://github.com/latex3/latex2e/commit/580f96ee8ea983512f652dd62af631ddea4b539e

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

commit 580f96ee8ea983512f652dd62af631ddea4b539e
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Tue Jun 8 22:55:53 2021 +0200

    make utf8inputenc kernel errors (hope I got them all)


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

580f96ee8ea983512f652dd62af631ddea4b539e
 base/changes.txt                         |   5 +
 base/testfiles/tlb-inputenc-001.tlg      |  16 +--
 base/testfiles/tlb-utf8-c0.tlg           |   6 +-
 base/testfiles/tlb-utf8-undec-cp1252.tlg |  14 +--
 base/testfiles/tlb1144.tlg               |   4 +-
 base/testfiles/tlb3480.tlg               |  20 ++--
 base/testfiles/tltx001.tlg               | 162 +++++++++++++++----------------
 base/utf8ienc.dtx                        |  28 +++---
 8 files changed, 129 insertions(+), 126 deletions(-)

diff --git a/base/changes.txt b/base/changes.txt
index 3ac95453..33868dc1 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -6,6 +6,11 @@ completeness or accuracy and it contains some references to files that
 are not part of the distribution.
 ================================================================================
 
+2021-06-08  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
+
+	* utf8ienc.dtx:
+	Change errors to kernel errors
+
 2021-06-05  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
 
 	* ltcmd.dtx, ltdefns.dtx, ltmiscen.dtx:
diff --git a/base/testfiles/tlb-inputenc-001.tlg b/base/testfiles/tlb-inputenc-001.tlg
index 7e13bcec..31ce9c35 100644
--- a/base/testfiles/tlb-inputenc-001.tlg
+++ b/base/testfiles/tlb-inputenc-001.tlg
@@ -4,8 +4,8 @@ LaTeX Font Info:    External font `cmex10' loaded for size
 (Font)              <7> on input line ....
 LaTeX Font Info:    External font `cmex10' loaded for size
 (Font)              <5> on input line ....
-! Package inputenc Error: Invalid UTF-8 byte sequence.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Invalid UTF-8 byte sequence.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...zz ^^c3X
@@ -24,18 +24,18 @@ l. ...thorn U+00fe [^^c3^^be
 Your command was ignored.
 Type  I <command> <return>  to replace it with another command,
 or  <return>  to continue without it.
-! Package inputenc Error: Unicode character ^^cc^^81 (U+0301)
-(inputenc)                not set up for use with LaTeX.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Unicode character ^^cc^^81 (U+0301)
+               not set up for use with LaTeX.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...comb acute U+0301 [^^cc^^81
                                 ]
 You may provide a definition with
 \DeclareUnicodeCharacter 
-! Package inputenc Error: Unicode character ^^f0^^9d^^94^^84 (U+1D504)
-(inputenc)                not set up for use with LaTeX.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Unicode character ^^f0^^9d^^94^^84 (U+1D504)
+               not set up for use with LaTeX.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...fraktur A [^^f0^^9d^^94^^84
diff --git a/base/testfiles/tlb-utf8-c0.tlg b/base/testfiles/tlb-utf8-c0.tlg
index 1be6afed..33279fae 100644
--- a/base/testfiles/tlb-utf8-c0.tlg
+++ b/base/testfiles/tlb-utf8-c0.tlg
@@ -16,9 +16,9 @@ l. ...\showthe\catcode4
 l. ...\showthe\catcode11
 > 13.
 l. ...\showthe\catcode150
-! Package inputenc Error: Unicode character ^^G (U+0007)
-(inputenc)                not set up for use with LaTeX.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Unicode character ^^G (U+0007)
+               not set up for use with LaTeX.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...^^07
diff --git a/base/testfiles/tlb-utf8-undec-cp1252.tlg b/base/testfiles/tlb-utf8-undec-cp1252.tlg
index c05ccd89..74cac926 100644
--- a/base/testfiles/tlb-utf8-undec-cp1252.tlg
+++ b/base/testfiles/tlb-utf8-undec-cp1252.tlg
@@ -1,16 +1,16 @@
 This is a generated file for the LaTeX2e validation system.
 Don't change this file in any respect.
-! Package inputenc Error: Unicode character ^^d6^^93 (U+0593)
-(inputenc)                not set up for use with LaTeX.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Unicode character ^^d6^^93 (U+0593)
+               not set up for use with LaTeX.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...a^^d6 ^^93
                x^^94 ^^df
 You may provide a definition with
 \DeclareUnicodeCharacter 
-! Package inputenc Error: Invalid UTF-8 byte "94.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Invalid UTF-8 byte "94.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...a^^d6 ^^93x^^94
@@ -20,8 +20,8 @@ Try adding \UseRawInputEncoding as the first line of the file
 or specify an encoding such as \usepackage [latin1]{inputenc}
 in the document preamble.
 Alternatively, save the file in UTF-8 using your editor or another tool
-! Package inputenc Error: Invalid UTF-8 byte sequence.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Invalid UTF-8 byte sequence.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...
diff --git a/base/testfiles/tlb1144.tlg b/base/testfiles/tlb1144.tlg
index 6053929f..19ebc66d 100644
--- a/base/testfiles/tlb1144.tlg
+++ b/base/testfiles/tlb1144.tlg
@@ -177,8 +177,8 @@ LaTeX Font Info:    External font `ecrm2488 at24.88pt' loaded as
 (Font)              T1/cmr/m/n/24.88  on input line ....
 LaTeX Font Info:    Switching to \T1/cmr/m/n/24.88  on input line ....
 LaTeX Font Info:    Changing size to 24.88/30.0pt on input line ....
-! Package inputenc Error: Invalid UTF-8 byte sequence.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Invalid UTF-8 byte sequence.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...\showoutput
diff --git a/base/testfiles/tlb3480.tlg b/base/testfiles/tlb3480.tlg
index 115dd408..c2f17764 100644
--- a/base/testfiles/tlb3480.tlg
+++ b/base/testfiles/tlb3480.tlg
@@ -4,10 +4,10 @@ Don't change this file in any respect.
 File: latin1.def ....-..-.. v... Input encoding file
 )
 LaTeX Font Info:    Trying to load font information for T1+cmtt on input line ....
-File: utf8.def ....-..-.. v... UTF-8 support for inputenc
+File: utf8.def ....-..-.. v... UTF-8 support
 )
-! Package inputenc Error: Invalid UTF-8 byte sequence.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Invalid UTF-8 byte sequence.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...for them: ^^c3F
@@ -17,16 +17,16 @@ Try adding \UseRawInputEncoding as the first line of the file
 or specify an encoding such as \usepackage [latin1]{inputenc}
 in the document preamble.
 Alternatively, save the file in UTF-8 using your editor or another tool
-! Package inputenc Error: Unicode character ^^e1^^a4^^b6 (U+1936)
-(inputenc)                not set up for use with LaTeX.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Unicode character ^^e1^^a4^^b6 (U+1936)
+               not set up for use with LaTeX.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...for them: ^^c3F ^^e1^^a4^^b6
 You may provide a definition with
 \DeclareUnicodeCharacter 
-! Package inputenc Error: Invalid UTF-8 byte sequence.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Invalid UTF-8 byte sequence.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ......e that are not legal utf8 sequences: ^^c3X
@@ -36,8 +36,8 @@ Try adding \UseRawInputEncoding as the first line of the file
 or specify an encoding such as \usepackage [latin1]{inputenc}
 in the document preamble.
 Alternatively, save the file in UTF-8 using your editor or another tool
-! Package inputenc Error: Invalid UTF-8 byte sequence.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Invalid UTF-8 byte sequence.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ......are not legal utf8 sequences: ^^c3X ^^e1XY
diff --git a/base/testfiles/tltx001.tlg b/base/testfiles/tltx001.tlg
index 60b0c7d7..c7b5d148 100644
--- a/base/testfiles/tltx001.tlg
+++ b/base/testfiles/tltx001.tlg
@@ -1588,241 +1588,241 @@ Type  H <return>  for immediate help.
 l. ...\mbox{\verb=zyx=}
 Try typing  <return>  to proceed.
 If that doesn't work, type  X <return>  to quit.
-! Package inputenc Error: Unicode character ^^A (U+0001)
-(inputenc)                not set up for use with LaTeX.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Unicode character ^^A (U+0001)
+               not set up for use with LaTeX.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...^^A
          ^^B^^C^^D^^E^^F^^G^^H^^I^^J^^K
 You may provide a definition with
 \DeclareUnicodeCharacter 
-! Package inputenc Error: Unicode character ^^B (U+0002)
-(inputenc)                not set up for use with LaTeX.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Unicode character ^^B (U+0002)
+               not set up for use with LaTeX.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...^^A^^B
             ^^C^^D^^E^^F^^G^^H^^I^^J^^K
 You may provide a definition with
 \DeclareUnicodeCharacter 
-! Package inputenc Error: Unicode character ^^C (U+0003)
-(inputenc)                not set up for use with LaTeX.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Unicode character ^^C (U+0003)
+               not set up for use with LaTeX.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...^^A^^B^^C
                ^^D^^E^^F^^G^^H^^I^^J^^K
 You may provide a definition with
 \DeclareUnicodeCharacter 
-! Package inputenc Error: Unicode character ^^D (U+0004)
-(inputenc)                not set up for use with LaTeX.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Unicode character ^^D (U+0004)
+               not set up for use with LaTeX.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...^^A^^B^^C^^D
                   ^^E^^F^^G^^H^^I^^J^^K
 You may provide a definition with
 \DeclareUnicodeCharacter 
-! Package inputenc Error: Unicode character ^^E (U+0005)
-(inputenc)                not set up for use with LaTeX.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Unicode character ^^E (U+0005)
+               not set up for use with LaTeX.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...^^A^^B^^C^^D^^E
                      ^^F^^G^^H^^I^^J^^K
 You may provide a definition with
 \DeclareUnicodeCharacter 
-! Package inputenc Error: Unicode character ^^F (U+0006)
-(inputenc)                not set up for use with LaTeX.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Unicode character ^^F (U+0006)
+               not set up for use with LaTeX.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...^^A^^B^^C^^D^^E^^F
                         ^^G^^H^^I^^J^^K
 You may provide a definition with
 \DeclareUnicodeCharacter 
-! Package inputenc Error: Unicode character ^^G (U+0007)
-(inputenc)                not set up for use with LaTeX.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Unicode character ^^G (U+0007)
+               not set up for use with LaTeX.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...^^A^^B^^C^^D^^E^^F^^G
                            ^^H^^I^^J^^K
 You may provide a definition with
 \DeclareUnicodeCharacter 
-! Package inputenc Error: Unicode character ^^H (U+0008)
-(inputenc)                not set up for use with LaTeX.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Unicode character ^^H (U+0008)
+               not set up for use with LaTeX.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...^^A^^B^^C^^D^^E^^F^^G^^H
                               ^^I^^J^^K
 You may provide a definition with
 \DeclareUnicodeCharacter 
-! Package inputenc Error: Unicode character ^^K (U+000B)
-(inputenc)                not set up for use with LaTeX.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Unicode character ^^K (U+000B)
+               not set up for use with LaTeX.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...^^A^^B^^C^^D^^E^^F^^G^^H^^I^^J^^K
 You may provide a definition with
 \DeclareUnicodeCharacter 
-! Package inputenc Error: Unicode character ^^N (U+000E)
-(inputenc)                not set up for use with LaTeX.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Unicode character ^^N (U+000E)
+               not set up for use with LaTeX.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...^^N
          ^^O^^P^^Q^^R^^S^^T^^U^^V^^W^^X^^Y^^Z
 You may provide a definition with
 \DeclareUnicodeCharacter 
-! Package inputenc Error: Unicode character ^^O (U+000F)
-(inputenc)                not set up for use with LaTeX.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Unicode character ^^O (U+000F)
+               not set up for use with LaTeX.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...^^N^^O
             ^^P^^Q^^R^^S^^T^^U^^V^^W^^X^^Y^^Z
 You may provide a definition with
 \DeclareUnicodeCharacter 
-! Package inputenc Error: Unicode character ^^P (U+0010)
-(inputenc)                not set up for use with LaTeX.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Unicode character ^^P (U+0010)
+               not set up for use with LaTeX.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...^^N^^O^^P
                ^^Q^^R^^S^^T^^U^^V^^W^^X^^Y^^Z
 You may provide a definition with
 \DeclareUnicodeCharacter 
-! Package inputenc Error: Unicode character ^^Q (U+0011)
-(inputenc)                not set up for use with LaTeX.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Unicode character ^^Q (U+0011)
+               not set up for use with LaTeX.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...^^N^^O^^P^^Q
                   ^^R^^S^^T^^U^^V^^W^^X^^Y^^Z
 You may provide a definition with
 \DeclareUnicodeCharacter 
-! Package inputenc Error: Unicode character ^^R (U+0012)
-(inputenc)                not set up for use with LaTeX.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Unicode character ^^R (U+0012)
+               not set up for use with LaTeX.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...^^N^^O^^P^^Q^^R
                      ^^S^^T^^U^^V^^W^^X^^Y^^Z
 You may provide a definition with
 \DeclareUnicodeCharacter 
-! Package inputenc Error: Unicode character ^^S (U+0013)
-(inputenc)                not set up for use with LaTeX.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Unicode character ^^S (U+0013)
+               not set up for use with LaTeX.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...^^N^^O^^P^^Q^^R^^S
                         ^^T^^U^^V^^W^^X^^Y^^Z
 You may provide a definition with
 \DeclareUnicodeCharacter 
-! Package inputenc Error: Unicode character ^^T (U+0014)
-(inputenc)                not set up for use with LaTeX.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Unicode character ^^T (U+0014)
+               not set up for use with LaTeX.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...^^N^^O^^P^^Q^^R^^S^^T
                            ^^U^^V^^W^^X^^Y^^Z
 You may provide a definition with
 \DeclareUnicodeCharacter 
-! Package inputenc Error: Unicode character ^^U (U+0015)
-(inputenc)                not set up for use with LaTeX.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Unicode character ^^U (U+0015)
+               not set up for use with LaTeX.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...^^N^^O^^P^^Q^^R^^S^^T^^U
                               ^^V^^W^^X^^Y^^Z
 You may provide a definition with
 \DeclareUnicodeCharacter 
-! Package inputenc Error: Unicode character ^^V (U+0016)
-(inputenc)                not set up for use with LaTeX.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Unicode character ^^V (U+0016)
+               not set up for use with LaTeX.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...^^N^^O^^P^^Q^^R^^S^^T^^U^^V
                                  ^^W^^X^^Y^^Z
 You may provide a definition with
 \DeclareUnicodeCharacter 
-! Package inputenc Error: Unicode character ^^W (U+0017)
-(inputenc)                not set up for use with LaTeX.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Unicode character ^^W (U+0017)
+               not set up for use with LaTeX.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...^^N^^O^^P^^Q^^R^^S^^T^^U^^V^^W
                                     ^^X^^Y^^Z
 You may provide a definition with
 \DeclareUnicodeCharacter 
-! Package inputenc Error: Unicode character ^^X (U+0018)
-(inputenc)                not set up for use with LaTeX.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Unicode character ^^X (U+0018)
+               not set up for use with LaTeX.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...^^N^^O^^P^^Q^^R^^S^^T^^U^^V^^W^^X
                                        ^^Y^^Z
 You may provide a definition with
 \DeclareUnicodeCharacter 
-! Package inputenc Error: Unicode character ^^Y (U+0019)
-(inputenc)                not set up for use with LaTeX.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Unicode character ^^Y (U+0019)
+               not set up for use with LaTeX.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...^^N^^O^^P^^Q^^R^^S^^T^^U^^V^^W^^X^^Y
                                           ^^Z
 You may provide a definition with
 \DeclareUnicodeCharacter 
-! Package inputenc Error: Unicode character ^^Z (U+001A)
-(inputenc)                not set up for use with LaTeX.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Unicode character ^^Z (U+001A)
+               not set up for use with LaTeX.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...^^N^^O^^P^^Q^^R^^S^^T^^U^^V^^W^^X^^Y^^Z
 You may provide a definition with
 \DeclareUnicodeCharacter 
-! Package inputenc Error: Unicode character ^^[ (U+001B)
-(inputenc)                not set up for use with LaTeX.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Unicode character ^^[ (U+001B)
+               not set up for use with LaTeX.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...^^[
          ^^\^^]^^^^^_
 You may provide a definition with
 \DeclareUnicodeCharacter 
-! Package inputenc Error: Unicode character ^^\ (U+001C)
-(inputenc)                not set up for use with LaTeX.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Unicode character ^^\ (U+001C)
+               not set up for use with LaTeX.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...^^[^^\
             ^^]^^^^^_
 You may provide a definition with
 \DeclareUnicodeCharacter 
-! Package inputenc Error: Unicode character ^^] (U+001D)
-(inputenc)                not set up for use with LaTeX.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Unicode character ^^] (U+001D)
+               not set up for use with LaTeX.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...^^[^^\^^]
                ^^^^^_
 You may provide a definition with
 \DeclareUnicodeCharacter 
-! Package inputenc Error: Unicode character ^^^ (U+001E)
-(inputenc)                not set up for use with LaTeX.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Unicode character ^^^ (U+001E)
+               not set up for use with LaTeX.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...^^[^^\^^]^^^
                   ^^_
 You may provide a definition with
 \DeclareUnicodeCharacter 
-! Package inputenc Error: Unicode character ^^_ (U+001F)
-(inputenc)                not set up for use with LaTeX.
-See the inputenc package documentation for explanation.
+! LaTeX Error: Unicode character ^^_ (U+001F)
+               not set up for use with LaTeX.
+See the LaTeX manual or LaTeX Companion for explanation.
 Type  H <return>  for immediate help.
  ...                                              
 l. ...^^[^^\^^]^^^^^_
diff --git a/base/utf8ienc.dtx b/base/utf8ienc.dtx
index 79c72591..d85a4155 100644
--- a/base/utf8ienc.dtx
+++ b/base/utf8ienc.dtx
@@ -216,7 +216,7 @@
 %<+ts1> \ProvidesFile{ts1enc.dfu}
 %<+x2>  \ProvidesFile{x2enc.dfu}
 %<+all> \ProvidesFile{utf8enc.dfu}
-%<-utf8-2018>   [2021/01/27 v1.2l UTF-8 support for inputenc]
+%<-utf8-2018>   [2021/06/08 v1.2m UTF-8 support]
 %    \end{macrocode}
 %
 %    \begin{macrocode}
@@ -449,8 +449,8 @@
 %
 %    \begin{macrocode}
      \else
-      \PackageError{inputenc}{Invalid UTF-8 byte sequence}%
-                             \UTFviii at invalid@help
+      \@latex at error{Invalid UTF-8 byte sequence}%
+                   \UTFviii at invalid@help
      \fi
 %    \end{macrocode}
 %
@@ -468,8 +468,8 @@
 % \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 "\UTFviii at hexnumber{`#1}}%
-                        \UTFviii at invalid@help}
+ \@latex at error{Invalid UTF-8 byte "\UTFviii at hexnumber{`#1}}%
+              \UTFviii at invalid@help}
 %    \end{macrocode}
 %
 %    \begin{macrocode}
@@ -487,7 +487,7 @@
 % \changes{v1.2a}{2018/03/24}{Macro added}%
 %    \begin{macrocode}
 \def\UTFviii at undefined@err#1{%
-  \PackageError{inputenc}{Unicode character \expandafter
+  \@latex at error{Unicode character \expandafter
                           \UTFviii at splitcsname\string#1\relax
                           \MessageBreak
                           not set up for use with LaTeX}%
@@ -776,8 +776,7 @@
     \ifnum\catcode\count@=13
       \uccode`\~=\count@\uppercase{\def\UTFviii at tmp{\@empty\@empty~}}%
     \else
-      \PackageError{inputenc}%
-                   {Cannot define non-active Unicode char value < 00A0}%
+      \@latex at error{Cannot define non-active Unicode char value < 00A0}%
                    \@eha
       \def\UTFviii at tmp{\UTFviii at tmp}%
     \fi
@@ -803,7 +802,7 @@
 % past this error.
 %    \begin{macrocode}
      \ifnum\count@>"10FFFF\relax
-           \PackageError{inputenc}%
+           \@latex at error
                 {\UTFviii at hexnumber\count@\space too large for Unicode}%
                 {Values between 0 and 10FFFF are permitted}%
       \fi
@@ -1967,7 +1966,7 @@
      \if\relax\expandafter\UTFviii at checkseq\string#1\relax\relax
       \UTFviii at undefined@err{#1}%
      \else
-      \PackageError{inputenc}{Invalid UTF-8 byte sequence}%
+      \@latex at error{Invalid UTF-8 byte sequence}%
                              \UTFviii at invalid@help
      \fi
   \else\expandafter
@@ -1975,7 +1974,7 @@
   \fi
 }
 \def\UTFviii at invalid@err#1{%
- \PackageError{inputenc}{Invalid UTF-8 byte "\UTFviii at hexnumber{`#1}}%
+ \@latex at error{Invalid UTF-8 byte "\UTFviii at hexnumber{`#1}}%
                         \UTFviii at invalid@help}
 \def\UTFviii at invalid@help{%
    The document does not appear to be in UTF-8 encoding.\MessageBreak
@@ -1984,7 +1983,7 @@
    in the document preamble.\MessageBreak
    Alternatively, save the file in UTF-8 using your editor or another tool}
 \def\UTFviii at undefined@err#1{%
-  \PackageError{inputenc}{Unicode character \expandafter
+  \@latex at error{Unicode character \expandafter
                           \UTFviii at splitcsname\string#1\relax
                           \MessageBreak
                           not set up for use with LaTeX}%
@@ -2083,8 +2082,7 @@
     \ifnum\catcode\count@=13
       \uccode`\~=\count@\uppercase{\def\UTFviii at tmp{\@empty\@empty~}}%
     \else
-      \PackageError{inputenc}%
-                   {Cannot define non-active Unicode char value < 00A0}%
+      \@latex at error{Cannot define non-active Unicode char value < 00A0}%
                    \@eha
       \def\UTFviii at tmp{\UTFviii at tmp}%
     \fi
@@ -2097,7 +2095,7 @@
      \parse at UTFviii@b E\UTFviii at three@octets.{,;}%
    \else
      \ifnum\count@>"10FFFF\relax
-           \PackageError{inputenc}%
+           \@latex at error%
                 {\UTFviii at hexnumber\count@\space too large for Unicode}%
                 {Values between 0 and 10FFFF are permitted}%
       \fi





More information about the latex3-commits mailing list.