Created attachment 748 [details]
Screenshots from PulseView and Process Monitor
If non-ANSI characters (for example, cyrillic) are present in file path, file import fails, and file export hangs.
Session load/save operations are not affected.
Steps to reproduce:
Create a directory with non-ANSI characters in the path (I used cyrillic "C:\Tmp\Файлы\"), place a file to it, and try to import it.
Load a session (or import a file) from an ANSI path, then try to export it to this directory with non-ANSI path.
PulseView fails on the import and hangs on the export. Process Monitor shows that non-ANSI characters in the path are corrupted (see the attachment).
This is due to ANSI version of CreateFile functon (CreateFileA) being used.
On the import, PulseView shows "Failed to load file" message with the correct path (see the attachment).
Successful import/export by using Unicode version of CreateFile (CreateFileW).
0.4.2 release, 0.5.0-git-3ce5dd9 nighty build.