Fix windows 8bit encoding conversion

Authored by aheinecke on Nov 30 2015, 4:09 PM.

Description

Fix windows 8bit encoding conversion

* src/w32-gettext.c (wchar_to_native): Convert to ConsoleOutputCP.

Just using CP_ACP did not neccessarily convert to the correct
codepage as codepages might differ between ConsoleOutput and
GUI output (which it usually does).
This fixes encoding issues on the Windows commandline.

Details

Committed
aheineckeDec 7 2015, 2:30 PM
Parents
rE68827cbba208: tests: Fix read past buffer.
Branches
Unknown
Tags
Unknown
Andre Heinecke <aheinecke@intevation.de> committed rE823e858cdf5e: Fix windows 8bit encoding conversion (authored by Andre Heinecke <aheinecke@intevation.de>).Dec 7 2015, 2:30 PM
aheinecke mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:08 PM
aheinecke mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:31 PM