[latex3-commits] [git/LaTeX3-latex3-hyperref] main: handle non-ascii in \hyperref label, issue 185 (ab8cbab)

Ulrike Fischer fischer at troubleshooting-tex.de
Sun Mar 28 16:18:01 CEST 2021


Repository : https://github.com/latex3/hyperref
On branch  : main
Link       : https://github.com/latex3/hyperref/commit/ab8cbabc16797b02f67869c09314f7af44874bda

>---------------------------------------------------------------

commit ab8cbabc16797b02f67869c09314f7af44874bda
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sun Mar 28 16:18:01 2021 +0200

    handle non-ascii in \hyperref label, issue 185


>---------------------------------------------------------------

ab8cbabc16797b02f67869c09314f7af44874bda
 hyperref.dtx                                              |  1 +
 testfiles/issue185-nonascii-label.lvt                     | 15 +++++++++++++++
 .../{gh167-lastskip.tlg => issue185-nonascii-label.tlg}   |  3 ---
 3 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/hyperref.dtx b/hyperref.dtx
index f72ba82..30544f9 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -7745,6 +7745,7 @@
 \def\Hy at babelnormalise#1[#2]{%
   \begingroup
     \Hy at safe@activestrue
+    \let\protect\@unexpandableprotect
     \edef\Hy at tempa{%
       \endgroup
       \noexpand#1[{#2}]%
diff --git a/testfiles/issue185-nonascii-label.lvt b/testfiles/issue185-nonascii-label.lvt
new file mode 100644
index 0000000..52be1f9
--- /dev/null
+++ b/testfiles/issue185-nonascii-label.lvt
@@ -0,0 +1,15 @@
+\input{regression-test}
+\documentclass{article}
+\usepackage{hyperref}
+
+\begin{document}
+
+\section{Foo}\label{foé}
+\newpage 
+\START
+\hyperref[foé]{GO}.
+
+\END
+
+abc\newpage
+\end{document}
diff --git a/testfiles/gh167-lastskip.tlg b/testfiles/issue185-nonascii-label.tlg
similarity index 79%
copy from testfiles/gh167-lastskip.tlg
copy to testfiles/issue185-nonascii-label.tlg
index a11b6ae..bfbef44 100644
--- a/testfiles/gh167-lastskip.tlg
+++ b/testfiles/issue185-nonascii-label.tlg
@@ -1,5 +1,2 @@
 This is a generated file for the l3build validation system.
 Don't change this file in any respect.
-no overfull box
-[1
-] [2]





More information about the latex3-commits mailing list.