JS_ToCStringLen2 contract is documented wrong
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Documentación
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- c
- Área
- documentation
Línea de trabajo
The issue is about the documentation of JS_ToCStringLen2, the C API function that converts a JS string to a C string. Find that function's declaration and its doc comment in the public header, then check the implementation to confirm the encoding it returns. Read the linked rquickjs report for context. Done means the doc comment states the actual encoding (WTF-8, which can hold unpaired surrogates) instead of UTF-8, and the wording is consistent with the implementation.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Following an issue report on https://github.com/DelSkayn/rquickjs/issues/805, I looked into the codebase and it does seem like quickjs always returned WTF-8 from the very early commits. But the documentation states that the C API will return UTF-8, this is not true.
- Lenguaje dominante
- C
- Estrellas
- 3.9k
- Forks
- 389
- Merge medio
- 2 d 2 h
- PR fusionados (30 d)
- 19
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de quickjs-ng/quickjs
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
quickjs-ng/quickjs#1959 ·
Los mantenedores suelen responder en 1 día
-
JS_SetPropertyInternal2 loses the value when a lazy property on the prototype runs out of memoryPosiblemente ocupada @TheNetherWatcher la tomó hace 6 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
quickjs-ng/quickjs#1852 ·
Los mantenedores suelen responder en 1 día
-
Object.prototype.propertyIsEnumerable converts `this` before the property keyPosiblemente ocupada @SomSamantray la tomó hace 48 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
quickjs-ng/quickjs#1772 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 58/100
quickjs-ng/quickjs#1957 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Slow compilation of large lexical scopesPosiblemente ocupada @0x5457 la tomó hace 3 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
quickjs-ng/quickjs#1953 ·
Los mantenedores suelen responder en 1 día
Todos los issues de quickjs-ng/quickjs
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 2 días
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 62/100
libsndfile/libsndfile#1238 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
DaveGamble/cJSON#1143 ·
-
Claude:Bug GPT:Bug triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
open5gs/open5gs#5161 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Cyberpunk not listed in readmeAbierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 2 días