[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: Gh730 (#731) (3c033f61)
GitHub
noreply at github.com
Mon Dec 13 20:00:55 CET 2021
Repository : https://github.com/latex3/latex2e
On branch : develop
Link : https://github.com/latex3/latex2e/commit/3c033f615a479057d8e7d05ac4b16a070c284547
>---------------------------------------------------------------
commit 3c033f615a479057d8e7d05ac4b16a070c284547
Author: David Carlisle <d.p.carlisle at gmail.com>
Date: Mon Dec 13 19:00:55 2021 +0000
Gh730 (#731)
* update for issue #730
* eol
* use ^^ to make test more visible
>---------------------------------------------------------------
3c033f615a479057d8e7d05ac4b16a070c284547
base/changes.txt | 4 ++++
base/doc/ltnews35.tex | 7 +++++--
base/testfiles-legacy/github-0730.lvt | 12 ++++++++++++
base/testfiles-legacy/github-0730.tlg | 33 +++++++++++++++++++++++++++++++++
base/utf8ienc.dtx | 7 ++++---
5 files changed, 58 insertions(+), 5 deletions(-)
diff --git a/base/changes.txt b/base/changes.txt
index 6bead591..f49223dd 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -6,6 +6,10 @@ completeness or accuracy and it contains some references to files that
are not part of the distribution.
================================================================================
+2021-12-13 David Carlisle <David.Carlisle at latex-project.org>
+
+ * utf8ienc.dtx: Use hex 80 not A0 to test for single byte UTF-8 github/730
+
2021-12-12 Frank Mittelbach <Frank.Mittelbach at latex-project.org>
* doc.dtx (subsection[Dealing with the change history]):
diff --git a/base/doc/ltnews35.tex b/base/doc/ltnews35.tex
index d4c9edd4..96611b4d 100644
--- a/base/doc/ltnews35.tex
+++ b/base/doc/ltnews35.tex
@@ -282,9 +282,12 @@ in the range U+01C4 to U+01CC.
\section{Bug fixes}
-\subsection{???}
+\subsection{Using \cs{DeclareUnicodeCharacter} with C1 control points}
+An error in the UTF-8 handling for non-Unicode \TeX, has prevented
+\cs{DeclareUnicodeCharacter} being used with characters in the range
+hex 80 to 9F, this has been corrected in this release.
%
-\githubissue{???}
+\githubissue{730}
diff --git a/base/testfiles-legacy/github-0730.lvt b/base/testfiles-legacy/github-0730.lvt
new file mode 100644
index 00000000..e76bba2a
--- /dev/null
+++ b/base/testfiles-legacy/github-0730.lvt
@@ -0,0 +1,12 @@
+\documentclass{article}
+
+\input{test2e}
+\DeclareUnicodeCharacter{009C}{\fbox{U+009C}}
+
+
+\begin{document}
+
+\START
+% This should show the fbox (and not error)
+\setbox0\hbox{U+009C:^^c2^^9c}\showbox0
+\END
diff --git a/base/testfiles-legacy/github-0730.tlg b/base/testfiles-legacy/github-0730.tlg
new file mode 100644
index 00000000..151ac3e6
--- /dev/null
+++ b/base/testfiles-legacy/github-0730.tlg
@@ -0,0 +1,33 @@
+This is a generated file for the LaTeX2e validation system.
+Don't change this file in any respect.
+> \box...=
+\hbox(10.2333+4.23332)x84.57796
+.\OT1/cmr/m/n/10 U
+.\OT1/cmr/m/n/10 +
+.\OT1/cmr/m/n/10 0
+.\OT1/cmr/m/n/10 0
+.\OT1/cmr/m/n/10 9
+.\OT1/cmr/m/n/10 C
+.\OT1/cmr/m/n/10 :
+.\hbox(10.2333+4.23332)x44.30008
+..\hbox(14.46663+0.0)x44.30008, shifted 4.23332
+...\vbox(14.46663+0.0)x44.30008
+....\rule(0.4+0.0)x*
+....\hbox(13.66664+0.0)x44.30008
+.....\rule(*+*)x0.4
+.....\vbox(13.66664+0.0)x43.50009
+......\glue 3.0
+......\hbox(6.83331+0.83333)x43.50009
+.......\kern 3.0
+.......\OT1/cmr/m/n/10 U
+.......\OT1/cmr/m/n/10 +
+.......\OT1/cmr/m/n/10 0
+.......\OT1/cmr/m/n/10 0
+.......\OT1/cmr/m/n/10 9
+.......\OT1/cmr/m/n/10 C
+.......\kern 3.0
+......\glue 3.0
+.....\rule(*+*)x0.4
+....\rule(0.4+0.0)x*
+! OK.
+l. ...\setbox0\hbox{U+009C:^^c2^^9c}\showbox0
diff --git a/base/utf8ienc.dtx b/base/utf8ienc.dtx
index 1067a7e6..9137fa11 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/12/10 v1.2n UTF-8 support]
+%<-utf8-2018> [2021/12/13 v1.2o UTF-8 support]
% \end{macrocode}
%
% \begin{macrocode}
@@ -773,12 +773,13 @@
% looks slightly strange but is designed for the sequence of |\expandafter|
% in |\DeclareUnicodeCharacter|.
%
+% \changes{v1.2o}{2021/12/13}{Use 80 not A0 to test for single byte UTF-8}
% \begin{macrocode}
- \ifnum\count@<"A0\relax
+ \ifnum\count@<"80\relax
\ifnum\catcode\count@=13
\uccode`\~=\count@\uppercase{\def\UTFviii at tmp{\@empty\@empty~}}%
\else
- \@latex at error{Cannot define non-active Unicode char value < 00A0}%
+ \@latex at error{Cannot define non-active Unicode char value < 0080}%
\@eha
\def\UTFviii at tmp{\UTFviii at tmp}%
\fi
More information about the latex3-commits
mailing list.