Page MenuHome GnuPG

737_0001-Fix-windows-8bit-encoding-conversion.patch
AbandonedPublic

Authored by aheinecke on Dec 11 2015, 11:32 AM.

Details

Reviewers
None
Summary

From 823e858cdf5eb6b9945a46478f9876819c16bcd3 Mon Sep 17 00:00:00 2001
From: Andre Heinecke <aheinecke@intevation.de>
Date: Mon, 30 Nov 2015 16:09:40 +0100
Subject: [PATCH] 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.

src/w32-gettext.c | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)

2.1.4

Test Plan

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped