[latex3-commits] [git/LaTeX3-latex3-pdfresources] master: correct str convert code for non-unicode engines (1e2f284)
Ulrike Fischer
fischer at troubleshooting-tex.de
Thu Mar 19 14:11:57 CET 2020
Repository : https://github.com/latex3/pdfresources
On branch : master
Link : https://github.com/latex3/pdfresources/commit/1e2f2847aa507a2389a02187243b7b833257a8c7
>---------------------------------------------------------------
commit 1e2f2847aa507a2389a02187243b7b833257a8c7
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Thu Mar 19 14:11:57 2020 +0100
correct str convert code for non-unicode engines
>---------------------------------------------------------------
1e2f2847aa507a2389a02187243b7b833257a8c7
hgeneric-experimental.def | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/hgeneric-experimental.def b/hgeneric-experimental.def
index 4bcdd9d..c7809f7 100644
--- a/hgeneric-experimental.def
+++ b/hgeneric-experimental.def
@@ -295,8 +295,15 @@
\char_set_catcode_other:N \~
\char_set_active_eq:NN \~ \c_tilde_str
\char_set_catcode_active:N \~
- \exp_args:NNx % or only o?
- \str_gset_convert:Nnnn \g_tmpa_str {#2}{}{utf8/string} %utf8 because of hyperref
+ \sys_if_engine_pdftex:TF
+ { %pdftex. Should we assume utf8 or allow other input encodings?
+ \exp_args:NNx % or only o?
+ \str_gset_convert:Nnnn \g_tmpa_str {#2}{utf8}{utf8/string} %utf8 because of hyperref
+ }
+ { %luatex,xetex
+ \exp_args:NNx % or only o?
+ \str_gset_convert:Nnnn \g_tmpa_str {#2}{}{utf8/string} %utf8 because of hyperref
+ }
\group_end:
\str_set_eq:NN#1 \g_tmpa_str
}
More information about the latex3-commits
mailing list.