Permalink
Browse files

Issues with non-ASCII chars in path or filename #604

* fix last commit
  • Loading branch information...
matlo committed Jan 20, 2019
1 parent 2726340 commit d67e2f923bc3ac444967d7a03b63dae4d273933a
Showing with 3 additions and 2 deletions.
  1. +1 −1 core/Makefile
  2. +2 −1 core/gimx.c
@@ -40,7 +40,7 @@ LDLIBS += `xml2-config --libs`
ifneq ($(OS),Windows_NT)
LDLIBS += -lm `pkg-config --libs ncursesw` -lbluetooth -lmhash
else
LDLIBS += $(shell sdl2-config --libs) -lws2_32 -lpdcursesw -lintl -lshell32 -luuid
LDLIBS += $(shell sdl2-config --libs) -lws2_32 -lpdcursesw -lintl -lshell32 -luuid -lole32
LDLIBS:=$(filter-out -mwindows,$(LDLIBS))
endif
CPPFLAGS += -Iinclude -Iconnectors/btstack/include -Iconnectors/btstack/src
@@ -22,6 +22,7 @@
#include <windows.h>
#include <shlobj.h> //to get the homedir
#include <knownfolders.h>
#include <objbase.h>
#endif

#include "gimx.h"
@@ -359,7 +360,7 @@ int main(int argc, char *argv[])
goto QUIT;
}
gimx_params.homedir = utf16le_to_utf8(path);
free(path);
CoTaskMemFree(path);
#endif

if (gprio() < 0)

0 comments on commit d67e2f9

Please sign in to comment.