This is in referance to Bug #9520.
Summary of changes:
Removed default parameter.
Removed stray paren.
Added unicode conversion, if needed.
--- src/sdk/configmanager.cpp (revision 3245)
+++ src/sdk/configmanager.cpp (working copy)
@@ -28,6 +28,7 @@
#include <wx/url.h>
#include <wx/stream.h>
#include <wx/stdpaths.h>
+#include <wx/strconv.h>
#ifdef __WXMSW__
#include <shlobj.h>
@@ -68,12 +69,12 @@
return fname.GetPath(wxPATH_GET_VOLUME);
#else
#if (__linux__)
- char c[PATH_MAX+1]);
+ char c[PATH_MAX+1];
char *p = realpath("/proc/self/exe", &c[0]);
if(p == 0)
return _T(".");
- wxFileName fname(p);
- return fname.GetPath(wxPATH_GET_VOLUME);
+ wxFileName fname(wxConvLocal.cMB2WX(p));
+ return fname.GetPath();
#else
return _T(".");
#endif