[Bug]: Pages with emoji fail to render on Windows

未關閉
#1,356 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

  • #1358 來自 @abhishekrajv7-cmd —— 已關閉,未合併

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
25/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
python
領域
backend

研究方向

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 內容生成。

描述

bug good first issue No-AI triaged
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

環境準備

在 Codespaces 中開啟

在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 有 Pull Request 範本
  • 沒有貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

render-engine/render-engine 的其他 Issue

查看 render-engine/render-engine 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。