use wxFileName to construct well-formed paths in GetMsgCatalogSubdirs() instead of doing it ourselves with string manipulations wrongly (patch 1835208)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50461 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-12-04 01:34:32 +00:00
parent 2a11c8265e
commit 9b3b7f5556

View File

@@ -1036,8 +1036,7 @@ wxString GetMsgCatalogSubdirs(const wxString& prefix, const wxString& lang)
// breaking apps after they are recompiled against the latest wx // breaking apps after they are recompiled against the latest wx
// b) it makes it possible to package app's support files in the same // b) it makes it possible to package app's support files in the same
// way on all target platforms // way on all target platforms
wxString pathPrefix; const wxString pathPrefix = wxFileName(prefix, lang).GetFullPath();
pathPrefix << prefix << wxFILE_SEP_PATH << lang;
wxString searchPath; wxString searchPath;
searchPath.reserve(4*pathPrefix.length()); searchPath.reserve(4*pathPrefix.length());