mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-20 21:37:17 +00:00

Switching the Windows language to a language encoded using UTF-16 (like Japanese) revealed that our native elevator module garbles language specific strings, making the child writer process unable to find an image inside a language specific directory, and thus resulting in a "File is not accessible" error. As a solution, we make use of `std::wstring` and wide character Windows API functions in the elevator module. Change-Type: patch Changelog-Entry: Fix "file is not accessible" error when flashing an image that lives inside a directory whose name is UTF-16 encoded on Windows. Fixes: https://github.com/resin-io/etcher/issues/1459 Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>