quarto-dev / quarto-dev/quarto-cli
error because of Non ascii account name in Windows
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
When having a Non ascii accout name in Windows system, for example echo %username% in CMD list a Chinese Account name, run quarto render hello.ipynb --to html will give an error:
Error running filter C:/quarto-0.9.446-win/share/filters/quarto-pre/quarto-pre.lua:
...arto-0.9.446-win/share/filters/quarto-pre/quarto-pre.lua:3420: attempt to index a nil value (local 'f')
stack traceback:
...arto-0.9.446-win/share/filters/quarto-pre/quarto-pre.lua:3384: in function <...arto-0.9.446-win/share/filters/quarto-pre/quarto-pre.lua:3377>
Pandoc has no problem. pandoc hello.ipynb -o hello.html is ok.
Quarto Version: 0.9.446
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with quarto render hello.ipynb --to html under a Windows account with a non-ASCII name, then inspect quarto-pre.lua around lines 3384-3420 from the traceback. Compare with the successful pandoc hello.ipynb -o hello.html run; done means Quarto renders the notebook to HTML without the nil-value error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100