aboutsummaryrefslogtreecommitdiffstats
path: root/tools/ccidmon.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2021-06-22 09:08:05 +0000
committerWerner Koch <[email protected]>2021-06-22 09:12:28 +0000
commitedfe9453be5f8ba374da0ab860be863d66965c56 (patch)
treef8e2e563a0608eecf745199954f47109dd5a1ea0 /tools/ccidmon.c
parentscd:p15: Prepare AODF parsing for other authentication types. (diff)
downloadgnupg-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