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

handle internationalized strings on windows

未关闭
#176 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug code owner only
主要语言
C++
星标
26
派生
25
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。