[1253] 修复 Ghostscript 输出路径包含空格时图片加载失败 - #4467
Open
da-liii wants to merge 2 commits into
Open
Conversation
da-liii
force-pushed
the
da/1253/fix_gs_quote
branch
from
September 1, 2026 13:57
3730717 to
bc1e411
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联 Issue
Closes #3978
What
TeXmacs/plugins/binary/progs/binary/gs.scm中,为gs-eps-to-pdf、gs-eps-to-png和gs-pdf-to-png的-sOutputFile=参数值加上string-quote包裹。CLAUDE.md开发规范说明:修改 Scheme 代码无需重新编译,在 Windows 下执行xmake i stem同步资源。devel/1253.md。Why
当用户名或临时目录路径包含空格(如 Linux/macOS 下
/tmp/Kovács Zoltán/...)时,未加引号的-sOutputFile=参数会被 Ghostscript 在空格处截断,导致 Ghostscript 报错无法生成目标文件,嵌入的 EPS/PDF 等图片无法加载显示。How
使用
string-quote对(url->system to)进行转义包裹双引号,生成-sOutputFile="...",使 Ghostscript 能正确接收包含空格的目标文件路径。