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

オープン
#1,356 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

  • #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時間
マージ済み PR(30日)
19

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

render-engine/render-engine のほかの issue

render-engine/render-engine の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。