Skip to content
Snippets Groups Projects
Verified Commit 4a12026e authored by mirabilos's avatar mirabilos Committed by mirabilos
Browse files

force proper \UTFviii@hexcodepoint definition to be used

parent 5c2b7129
No related branches found
No related tags found
No related merge requests found
...@@ -22,19 +22,6 @@ ...@@ -22,19 +22,6 @@
%: merged %: merged
\ifx\UTFviii@hexcodepoint\@undefined% \ifx\UTFviii@hexcodepoint\@undefined%
%: reverted partially, need to override
% format a number as Unicode codepoint hex
\gdef\UTFviii@hexcodepoint#1{%
\ifnum#1<16 U+000%
\else\ifnum#1<256 U+00%
\else\ifnum#1<4096 U+0%
\else\ifnum#1<65536 U+%
\else\ifnum#1<1048576 U-000%
\else U-00%
\fi\fi\fi\fi\fi%
\UTFviii@hexnumber{#1}%
}%
% override message to format the codepoint correctly % override message to format the codepoint correctly
\gdef\UTFviii@splitcsname#1:#2\relax{% \gdef\UTFviii@splitcsname#1:#2\relax{%
#2 (\expandafter\UTFviii@hexcodepoint\expandafter{% #2 (\expandafter\UTFviii@hexcodepoint\expandafter{%
...@@ -42,6 +29,19 @@ ...@@ -42,6 +29,19 @@
}% }%
\fi% \fi%
%: reverted partially, override bogus definition
% format a number as Unicode codepoint hex
\gdef\UTFviii@hexcodepoint#1{%
\ifnum#1<16 U+000%
\else\ifnum#1<256 U+00%
\else\ifnum#1<4096 U+0%
\else\ifnum#1<65536 U+%
\else\ifnum#1<1048576 U-000%
\else U-00%
\fi\fi\fi\fi\fi%
\UTFviii@hexnumber{#1}%
}%
%: https://github.com/latex3/latex2e/pull/62 %: https://github.com/latex3/latex2e/pull/62
% split an invalid byte sequence for output % split an invalid byte sequence for output
\ifx\UTFviii@splitseq\@undefined% \ifx\UTFviii@splitseq\@undefined%
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment