465_0001-Let-wchar_to_native-convert-to-console-codepage.patch
AbandonedPublic

Authored by aheinecke on Aug 21 2014, 12:07 PM.

Details

Reviewers
None
Summary

From ba62c8e78bc4d14cfe8c69928ec10fa14e8c6cd8 Mon Sep 17 00:00:00 2001
From: Andre Heinecke <aheinecke@intevation.de>
Date: Thu, 21 Aug 2014 12:05:12 +0200
Subject: [PATCH] Let wchar_to_native convert to console codepage

  • jnlib/w32-gettext.c (wchar_to_native): Use GetConsoleOutputCP.
  • Just using CP_ACP does not neccessarily convert to the correct codepage as codepages might differ between ConsoleOutput and GUI output (which it usually does).

    GnuPG-bug-id: 1691, 1373, 1674 --- jnlib/w32-gettext.c | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-)

1.9.1

Test Plan

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped