diff options
| author | Werner Koch <[email protected]> | 2021-06-22 09:08:05 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2021-06-22 09:12:28 +0000 |
| commit | edfe9453be5f8ba374da0ab860be863d66965c56 (patch) | |
| tree | f8e2e563a0608eecf745199954f47109dd5a1ea0 /tools/ccidmon.c | |
| parent | scd:p15: Prepare AODF parsing for other authentication types. (diff) | |
| download | gnupg-edfe9453be5f8ba374da0ab860be863d66965c56.tar.gz gnupg-edfe9453be5f8ba374da0ab860be863d66965c56.zip | |
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
Diffstat (limited to 'tools/ccidmon.c')
0 files changed, 0 insertions, 0 deletions
