[Bug]: Pages with emoji fail to render on Windows
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
- #1358 來自 @abhishekrajv7-cmd —— 已關閉,未合併
評估
研究方向
The failure comes from read_text and write_text calls that rely on the system encoding, so start by finding where render-engine reads and writes page files and check the CI run linked in the issue. Pull request #1358 is already linked to this issue and was closed without merging, so read its discussion before starting. Done means pages containing emoji render on Windows with an explicit UTF-8 encoding, and the existing tests still pass.
由索引模型根據 Issue 內容生成。
描述
Summary Of Actions
We saw a CI failure which appears to be happening because of an emoji in the page we're rendering. This is only happening on Windows. Root cause is most likely that in Python < 3.15 the default encoding for read_text and write_text is the system encoding (this was changed to UTF-8 in 3.15) and the default encoding on Windows can't process the emoji so raises an error.
Operating System
Windows (include version)
What Python Version are you using?
3.14
Have you installed Plugins/Themes/Custom Parsers?
No response
What did you enter to get the output that you received?
Output
- 主要語言
- Python
- 星號
- 65
- 分支
- 47
- 平均合併
- 1 天 15 小時
- 30 天內合併 PR
- 19
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 沒有貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
render-engine/render-engine 的其他 Issue
-
[Bug]: GH workflow lint.yml not linting可能已有人在做 @tystar86 今天認領。 未關閉bug
難度 1/5 1 小時以內 新手友好度 78/100
render-engine/render-engine#1362 · 2 則留言 ·
維護者通常 1 天內回覆
-
No-AI release triaged
難度 1/5 1 小時以內 新手友好度 90/100
render-engine/render-engine#1361 · 1 則留言 ·
維護者通常 1 天內回覆
-
admin triaged
難度 1/5 1 小時以內 新手友好度 78/100
render-engine/render-engine#1349 ·
維護者通常 1 天內回覆
-
難度 5/5 一週以上 新手友好度 8/100
render-engine/render-engine#1357 · 2 則留言 ·
維護者通常 1 天內回覆
-
triaged
難度 2/5 1-3 小時 新手友好度 55/100
render-engine/render-engine#1355 · 1 則留言 ·
維護者通常 1 天內回覆
查看 render-engine/render-engine 的全部 Issue
相似的 Issue
-
難度 1/5 1 小時以內 新手友好度 82/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 76/100
microsoft/TokenEconomizer#360 · 1 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
-
reasons-gate
難度 2/5 1-3 小時 新手友好度 65/100
benthomasson/reasons-service#190 ·
-
難度 2/5 1-3 小時 新手友好度 72/100
-
ui
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆