Home GnuPG

random: Allow for a Unicode random seed file on Windows.

Description

random: Allow for a Unicode random seed file on Windows.

* random/random-csprng.c (utf8_to_wchar) [W32]: New.
(any8bitchar) [W32]: New.
(my_open): New.  Replace all calls to open with this.

Users with account names having an Unicode character in their name may
now create a random_see file without running into an error. Note
that depending on the code page this used to work but for sure no if
more than one byte is required. For testing I used "Ⓐnne".

  • GnuPG-bug-id: T5098
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Oct 23 2020, 1:34 PM
Parents
rC4a50c6b88d6d: tests: Fix typo in comment
Branches
Unknown
Tags
Unknown
Tasks
T5098: Gpg4win problems for Windows Users with some non-ASCII account names