Election-Tech-Initiative / Election-Tech-Initiative/electionguard-cpp

handle internationalized strings on windows

Open
#176 1 comment 0 reactions 0 assignees View on GitHub
bug code owner only
Dominant language
C++
Stars
26
Forks
25
PR merge metrics
No merged PRs in 30d

Description

## 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]

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.