quarto-dev / quarto-dev/quarto

extension: previewing a docx file with Chinese characters in the filename on Windows fails

Open
#782 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
645
Forks
62
Avg merge
17h 42m
Merged PRs (30d)
13

Description

Bug description

Originally reported in https://github.com/posit-dev/positron/issues/8834. VS Code and Positron aren't able to open the preview for a file named 文档.qmd if the format is docx.

Steps to reproduce

In VS Code or Positron on Windows,

  • open a new file named 文档.qmd
  • add
---
title: "hey"
format: docx
---

hi

and save

  • run the Quarto Preview command
  • in the "Render complete - View preview" popup, click the button
  • In VS Code, nothing happens. In Positron, we get a popup that says "An error occurred opening an external program. Failed to open: The system cannot find the file specified. (0x2)"
Actual behavior

No response

Expected behavior

The file should open in MS Word if that's what's configured as the default.

Your environment

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Quarto Preview flow on Windows with a .qmd file named 文档.qmd and format: docx. Trace the preview's external-program handoff and compare the behavior for ASCII and Chinese filenames; done means the generated DOCX opens in the configured default application.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
cli, desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.