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

Abierto
#1,356 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

  • #1358 de @abhishekrajv7-cmd — cerrado sin fusionar

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Python
Estrellas
65
Forks
47
Merge medio
1 d 15 h
PR fusionados (30 d)
19

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de render-engine/render-engine

Todos los issues de render-engine/render-engine

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.