[latex3-commits] [git/LaTeX3-latex3-latex2e] gh730: update for issue #730 (4901ad82)
David Carlisle
d.p.carlisle at gmail.com
Mon Dec 13 19:23:52 CET 2021
Repository : https://github.com/latex3/latex2e
On branch : gh730
Link : https://github.com/latex3/latex2e/commit/4901ad822e2076fca076d05310e567d06889a74e
>---------------------------------------------------------------
commit 4901ad822e2076fca076d05310e567d06889a74e
Author: David Carlisle <d.p.carlisle at gmail.com>
Date: Mon Dec 13 18:23:52 2021 +0000
update for issue #730
>---------------------------------------------------------------
4901ad822e2076fca076d05310e567d06889a74e
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..39d1f502
--- /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:}\showbox0
+\END
\ No newline at end of file
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.