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:
parent
2a11c8265e
commit
9b3b7f5556
@ -1036,8 +1036,7 @@ wxString GetMsgCatalogSubdirs(const wxString& prefix, const wxString& lang)
|
||||
// breaking apps after they are recompiled against the latest wx
|
||||
// b) it makes it possible to package app's support files in the same
|
||||
// way on all target platforms
|
||||
wxString pathPrefix;
|
||||
pathPrefix << prefix << wxFILE_SEP_PATH << lang;
|
||||
const wxString pathPrefix = wxFileName(prefix, lang).GetFullPath();
|
||||
|
||||
wxString searchPath;
|
||||
searchPath.reserve(4*pathPrefix.length());
|
||||
|
Loading…
Reference in New Issue
Block a user