News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Bug #9520 - Patch

Started by TheNewb, November 21, 2006, 02:53:59 PM

Previous topic - Next topic

TheNewb

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