Home GnuPG
Diffusion GnuPG d65ea29683ee

w32: Allow Unicode filenames for dotlock

Description

w32: Allow Unicode filenames for dotlock

* common/dotlock.c (any8bitchar) [W32]: New.
(dotlock_create_w32): Use strconcat and CreateFileW.
* common/t-dotlock.c: Source include dotlock.c and modify to allow
manual testing on Windows.

(cherry picked from commit b47c355b18d9537ccc3dd3e80cc1825b018ecff7)

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