ezra-bible-app / node-sword-interface

JavaScript (N-API) interface to SWORD library
GNU General Public License v2.0
22 stars 2 forks source link

Initialization fails with non-ascii home directory / user path #9

Closed tobias-klein closed 3 years ago

tobias-klein commented 3 years ago

It has been observed that the initialization of node-sword-interface fails with a non-ascii home directory / user path. Crash reports were received from Windows users. Whether or not this also happens on Linux/macOS is unclear.

tobias-klein commented 3 years ago

This has been fixed by consistently using wchar / wstring versions of the Windows filesystem related methods and also converting UTF8 filenames to UTF16 before reading the respective files.

See also: