[latex3-commits] [git/LaTeX3-latex3-pdfresources] develop: correct URI encoding: ? was not restored (5e05a7a)
Ulrike Fischer
fischer at troubleshooting-tex.de
Tue Jun 8 15:26:45 CEST 2021
Repository : https://github.com/latex3/pdfresources
On branch : develop
Link : https://github.com/latex3/pdfresources/commit/5e05a7aae0e8cce0401c5fb8c65b05eae093546c
>---------------------------------------------------------------
commit 5e05a7aae0e8cce0401c5fb8c65b05eae093546c
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Tue Jun 8 15:26:45 2021 +0200
correct URI encoding: ? was not restored
>---------------------------------------------------------------
5e05a7aae0e8cce0401c5fb8c65b05eae093546c
CHANGELOG.md | 3 +++
l3pdftools.dtx | 1 +
testfiles/text-convert.lvt | 4 ++--
3 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 961f357..7f8b0ae 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,9 @@ this project uses date-based 'snapshot' version identifiers.
### Added
- \pdffile_filespec:nnn to create a filespec dictionary
+### Fixed
+ - utf8/URI in l3pdftools didn't handle ?
+
## [2021-05-14]
### Fixed
- xcolor patch for [ps] type used in pstricks
diff --git a/l3pdftools.dtx b/l3pdftools.dtx
index 76368fc..5ff8e26 100644
--- a/l3pdftools.dtx
+++ b/l3pdftools.dtx
@@ -346,6 +346,7 @@
\exp_not:N \str_replace_all:Nnn #2 {\c_percent_str 2C} {,}
\exp_not:N \str_replace_all:Nnn #2 {\c_percent_str 3B} {;}
\exp_not:N \str_replace_all:Nnn #2 {\c_percent_str 3D} {=}
+ \exp_not:N \str_replace_all:Nnn #2 {\c_percent_str 3F} {?}
\exp_not:N \str_replace_all:Nnn #2 {\c_percent_str 30} {0}
\exp_not:N \str_replace_all:Nnn #2 {\c_percent_str 31} {1}
\exp_not:N \str_replace_all:Nnn #2 {\c_percent_str 32} {2}
diff --git a/testfiles/text-convert.lvt b/testfiles/text-convert.lvt
index 16cf7da..2e59e75 100644
--- a/testfiles/text-convert.lvt
+++ b/testfiles/text-convert.lvt
@@ -41,9 +41,9 @@
\TEST{show~string-URI}
{
- \pdf_string_from_unicode:nnN{utf8/URI}{https://www.123.cy&abc=blub+}\l_tmpa_str
+ \pdf_string_from_unicode:nnN{utf8/URI}{https://www.123.cy&abc=blub+?zz}\l_tmpa_str
\str_if_eq:onTF { \l_tmpa_str }
- { (https://www.123.cy&abc=blub+) } { \TRUE } { \ERROR }
+ { (https://www.123.cy&abc=blub+?zz) } { \TRUE } { \ERROR }
}
\ExplSyntaxOff
More information about the latex3-commits
mailing list.