Election-Tech-Initiative / Election-Tech-Initiative/electionguard-cpp
handle internationalized strings on windows
- Lenguaje dominante
- C++
- Estrellas
- 26
- Forks
- 25
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
## Bug Report
**Expected Behavior**
international character sets are handled in utf-16
**Actual Behavior**
when marshalling strings from c# to the native library, the character set is misinterpreted. likely due ot the use of wide string and converting to string.
## steps to reproduce:
netframework ManifestGenerator uncomment one of the lines that includes spanish language.
set a break in the Manifest.h c++/cli wrapper constructor after `Utilities::MarshalString(json, _json);`
expected: the string is properly translated
actual: the string has extra characters
**Environment**
- OS: [e.g. OSX 10.13.4, Windows 10]
- Version: [e.g. 1.0.1]
Guía de contribución
Línea de trabajo
Comience con la reproducción de netframework ManifestGenerator y el constructor del wrapper de C++/CLI en Manifest.h, especialmente la llamada a Utilities::MarshalString(json, _json). Inspeccione cómo se representa y convierte la cadena de manifiesto en español, y luego verifique que la biblioteca nativa recibe los caracteres UTF-16 esperados sin caracteres adicionales.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- cpp, csharp
- Área
- backend
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100