summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/base/utf8.def
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-11-12 23:08:46 +0000
committerKarl Berry <karl@freefriends.org>2021-11-12 23:08:46 +0000
commite80240b5e5bfb83d84a9e6d81e31b0bfb82d637c (patch)
treeb76f4a81a066673810d3b9ee777926d848f414f0 /Master/texmf-dist/tex/latex/base/utf8.def
parent0ff2ba12c9b350c0546c2256e398168d325d234a (diff)
2e (12nov21)
git-svn-id: svn://tug.org/texlive/trunk@61041 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/base/utf8.def')
-rw-r--r--Master/texmf-dist/tex/latex/base/utf8.def18
1 files changed, 9 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/base/utf8.def b/Master/texmf-dist/tex/latex/base/utf8.def
index 0e2dc1a885a..fd3bfed819f 100644
--- a/Master/texmf-dist/tex/latex/base/utf8.def
+++ b/Master/texmf-dist/tex/latex/base/utf8.def
@@ -42,7 +42,7 @@
%% and covered by LPPL is defined by the unpacking scripts (with
%% extension .ins) which are part of the distribution.
\ProvidesFile{utf8.def}
- [2021/01/27 v1.2l UTF-8 support for inputenc]
+ [2021/06/21 v1.2n UTF-8 support]
\ifx\ifincsname\@undefined % old e-pTeX or e-upTeX engines
\input utf8-2018.def
\expandafter\@firstofone
@@ -102,16 +102,17 @@
\if\relax\expandafter\UTFviii@checkseq\string#1\relax\relax
\UTFviii@undefined@err{#1}%
\else
- \PackageError{inputenc}{Invalid UTF-8 byte sequence}%
- \UTFviii@invalid@help
+ \@latex@error{Invalid UTF-8 byte sequence (\expandafter
+ \@gobblefour\string#1)}%
+ \UTFviii@invalid@help
\fi
\else\expandafter
#1%
\fi
}
\def\UTFviii@invalid@err#1{%
- \PackageError{inputenc}{Invalid UTF-8 byte "\UTFviii@hexnumber{`#1}}%
- \UTFviii@invalid@help}
+ \@latex@error{Invalid UTF-8 byte "\UTFviii@hexnumber{`#1}}%
+ \UTFviii@invalid@help}
\def\UTFviii@invalid@help{%
The document does not appear to be in UTF-8 encoding.\MessageBreak
Try adding \noexpand\UseRawInputEncoding as the first line of the file\MessageBreak
@@ -119,7 +120,7 @@
in the document preamble.\MessageBreak
Alternatively, save the file in UTF-8 using your editor or another tool}
\def\UTFviii@undefined@err#1{%
- \PackageError{inputenc}{Unicode character \expandafter
+ \@latex@error{Unicode character \expandafter
\UTFviii@splitcsname\string#1\relax
\MessageBreak
not set up for use with LaTeX}%
@@ -218,8 +219,7 @@
\ifnum\catcode\count@=13
\uccode`\~=\count@\uppercase{\def\UTFviii@tmp{\@empty\@empty~}}%
\else
- \PackageError{inputenc}%
- {Cannot define non-active Unicode char value < 00A0}%
+ \@latex@error{Cannot define non-active Unicode char value < 00A0}%
\@eha
\def\UTFviii@tmp{\UTFviii@tmp}%
\fi
@@ -232,7 +232,7 @@
\parse@UTFviii@b E\UTFviii@three@octets.{,;}%
\else
\ifnum\count@>"10FFFF\relax
- \PackageError{inputenc}%
+ \@latex@error
{\UTFviii@hexnumber\count@\space too large for Unicode}%
{Values between 0 and 10FFFF are permitted}%
\fi