From 674a3f96679568f097719df03c78e3ff9d8a1b06 Mon Sep 17 00:00:00 2001
From: mirabilos <m@mirbsd.org>
Date: Sun, 5 Aug 2018 22:05:48 +0200
Subject: [PATCH] =?UTF-8?q?Joseph=20Wright=20suggests=20to=20use=20the=20T?=
 =?UTF-8?q?e=CF=87-customary=20"XX=20for=20hex?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 unicodedomino_kernel_cosmetics.def | 4 ++--
 unicodedomino_kernel_fixup.def     | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/unicodedomino_kernel_cosmetics.def b/unicodedomino_kernel_cosmetics.def
index 5928c06..d84f9a2 100644
--- a/unicodedomino_kernel_cosmetics.def
+++ b/unicodedomino_kernel_cosmetics.def
@@ -51,7 +51,7 @@
  }%
  \gdef\UTFviii@hexseq#1#2\relax{%
   % display first octet
-  \space 0x\UTFviii@hexbyte{`#1}%
+  \space "\UTFviii@hexbyte{`#1}%
   % recursively handle remaining octets
   \ifx\relax#2\relax\else\UTFviii@hexseq#2\relax\fi%
  }%
@@ -59,7 +59,7 @@
 
 % override message to give the byte in hex
 \def\UTFviii@invalid@err#1{%
- \PackageError{inputenc}{Invalid UTF-8 byte 0x\UTFviii@hexbyte{`#1}}%
+ \PackageError{inputenc}{Invalid UTF-8 byte "\UTFviii@hexbyte{`#1}}%
   \UTFviii@invalid@help%
 }%
 
diff --git a/unicodedomino_kernel_fixup.def b/unicodedomino_kernel_fixup.def
index c0c4f60..514add7 100644
--- a/unicodedomino_kernel_fixup.def
+++ b/unicodedomino_kernel_fixup.def
@@ -22,7 +22,7 @@
 %-
 % Fix check for illegal sequences to fail overlong encoded sequences
 % as well as codepoints outside of the Unicode range [0;10FFFF]. Add
-% 0xF4 to the list of permitted lead octets.
+% "F4 to the list of permitted lead octets.
 
 % run the fixup code only if necessary {{{ begin
 \ifx\UTFviii@check@three\@undefined%
@@ -129,7 +129,7 @@
  \unicodedomino@parse@XML@charref%
 }%
 
-% bugfix: add 0xF4 to the list of permitted lead octets
+% bugfix: add "F4 to the list of permitted lead octets
 % (needs the above fix)
 \begingroup%
 \catcode`\~13
-- 
GitLab