mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Fix issues with tilde in inputpath
Fixes #11699
(cherry picked from commit a426b33067
)
This commit is contained in:
parent
878efbaf62
commit
2deabd0fbd
@ -1911,11 +1911,12 @@ void Buffer::writeLaTeXSource(otexstream & os,
|
||||
os << "\\catcode`\\%=11"
|
||||
"\\def\\%{%}\\catcode`\\%=14\n";
|
||||
}
|
||||
if (contains(docdir, '~'))
|
||||
docdir = subst(docdir, "~", "\\string~");
|
||||
bool const nonascii = !isAscii(from_utf8(docdir));
|
||||
// LaTeX 2019/10/01 handles non-ascii path without detokenize
|
||||
bool const utfpathlatex = features.isAvailable("LaTeX-2019/10/01");
|
||||
bool const detokenize = !utfpathlatex
|
||||
&& (nonascii || contains(docdir, '~'));
|
||||
bool const detokenize = !utfpathlatex && nonascii;
|
||||
bool const quote = contains(docdir, ' ');
|
||||
if (utfpathlatex && nonascii)
|
||||
os << "\\UseRawInputEncoding\n";
|
||||
|
@ -44,6 +44,9 @@ What's new
|
||||
- Fix problems with non-ASCII characters in file path with recent LaTeX
|
||||
(bug 11146).
|
||||
|
||||
- Fix problems with recent LaTeX when \input@path contains tilde and space
|
||||
(bug 11699).
|
||||
|
||||
|
||||
* USER INTERFACE
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user