[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#7992) lmdb: Windows: assume file paths are UTF-8, encode to UTF-16 for WinAPI and enable compiling when UNICODE is defined

Full_Name: Oskari Timperi
OS: Windows 7
URL: ftp://ftp.openldap.org/incoming/oskari-timperi-141205.zip
Submission from: (NULL) (

The patches make some changes so that compiling lmdb when UNICODE is defined is
possible. This is achieved by using the A-versions of WinApi functions where
they are needed.

Also use CreateFileW to open files so that one can use exotic characters in
paths. The library interface is not modified, but the code makes an assumption
that paths passed to lmdb functions are encoded as UTF-8. The UTF-8 encoded
paths are encoded to UTF-16 which is then passed to CreateFileW.