Skip to content

fix(quarto-core): normalize intermediate filename to forward slashes on Windows#387

Merged
cderv merged 1 commit into
mainfrom
braid/bd-fn05e8pg-windows-path-separator
Jul 9, 2026
Merged

fix(quarto-core): normalize intermediate filename to forward slashes on Windows#387
cderv merged 1 commit into
mainfrom
braid/bd-fn05e8pg-windows-path-separator

Conversation

@cderv

@cderv cderv commented Jul 9, 2026

Copy link
Copy Markdown
Member

On Windows, intermediate_filename() produced mixed-separator paths like /project\test.knitr.rmarkdown instead of /project/test.knitr.rmarkdown. Path::with_file_name().display() renders the joined filename component with the native separator, while the VFS-style root stays forward-slash.

Wrap the result in quarto_util::to_forward_slashes, matching how other VFS-style paths are normalized elsewhere in the codebase.

…on Windows

Path::with_file_name().display() renders the joined filename with the
native separator, producing mixed /project\file.rmarkdown paths on
Windows while the VFS root stays forward-slash. Use quarto_util::to_forward_slashes
like the rest of the codebase does for VFS-style paths.
@posit-snyk-bot

posit-snyk-bot commented Jul 9, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@cderv cderv merged commit 807ae52 into main Jul 9, 2026
8 checks passed
@cderv cderv deleted the braid/bd-fn05e8pg-windows-path-separator branch July 9, 2026 13:35
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.

2 participants