1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00
Werner Koch e94dfa21d2
w32: Add fallback in case the Windows console can't cope with Unicode.
* common/ttyio.c (w32_write_console): Fallback to WriteConsoleA on
error.
--

To test this switch the Windows Console to "legacy mode"

  set LANG=de
  gpg --card-edit

and enter an invalid command.  The response contains an Umlaut and old
Windows versions (and the legacy console) don't have a proper font
installed for this.  Without this patch this runs into a log_fatal
error.

The mitigation we implement is to fallback to WriteConsoleA, that is
accepting wrong encoding and to print a note about the problem.

GnuPG-bug-id: 5491
2021-06-22 11:08:05 +02:00
..
2015-10-28 10:20:17 +01:00
2021-06-02 19:11:42 +02:00
2015-11-17 12:50:22 +01:00
2017-04-28 10:06:33 +09:00
2017-02-21 13:11:46 -05:00
2019-04-16 13:27:44 +09:00
2021-05-20 14:52:08 +02:00
2016-03-02 14:27:30 +01:00
2017-04-28 10:06:33 +09:00
2017-02-21 13:11:46 -05:00
2020-11-09 11:53:33 +01:00
2021-01-11 14:26:27 +01:00
2021-01-11 14:26:27 +01:00
2021-04-29 12:25:46 +02:00
2021-04-29 10:38:29 +02:00
2021-01-11 18:40:45 +01:00
2017-02-21 13:11:46 -05:00

Common functionality used by all modules of GnuPG.