Skip to content

Commit

Permalink
Issues with non-ASCII chars in path or filename #604
Browse files Browse the repository at this point in the history
* fix last commit
  • Loading branch information
matlo committed Jan 20, 2019
1 parent 2726340 commit d67e2f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion core/gimx.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <windows.h>
#include <shlobj.h> //to get the homedir
#include <knownfolders.h>
#include <objbase.h>
#endif

#include "gimx.h"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit d67e2f9

Please sign in to comment.