Skip to content

[1253] 修复 Ghostscript 输出路径包含空格时图片加载失败 - #4467

Open
da-liii wants to merge 2 commits into
mainfrom
da/1253/fix_gs_quote
Open

[1253] 修复 Ghostscript 输出路径包含空格时图片加载失败#4467
da-liii wants to merge 2 commits into
mainfrom
da/1253/fix_gs_quote

Conversation

@da-liii

@da-liii da-liii commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

关联 Issue

Closes #3978

What

  1. TeXmacs/plugins/binary/progs/binary/gs.scm 中,为 gs-eps-to-pdfgs-eps-to-pnggs-pdf-to-png-sOutputFile= 参数值加上 string-quote 包裹。
  2. 更新 CLAUDE.md 开发规范说明:修改 Scheme 代码无需重新编译,在 Windows 下执行 xmake i stem 同步资源。
  3. 添加任务文档 devel/1253.md

Why

当用户名或临时目录路径包含空格(如 Linux/macOS 下 /tmp/Kovács Zoltán/...)时,未加引号的 -sOutputFile= 参数会被 Ghostscript 在空格处截断,导致 Ghostscript 报错无法生成目标文件,嵌入的 EPS/PDF 等图片无法加载显示。

How

使用 string-quote(url->system to) 进行转义包裹双引号,生成 -sOutputFile="...",使 Ghostscript 能正确接收包含空格的目标文件路径。

@da-liii
da-liii force-pushed the da/1253/fix_gs_quote branch from 3730717 to bc1e411 Compare September 1, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Embedded EPS is not loaded if the user name contains a space (Linux)

1 participant