From: Vadim Zeitlin Date: Tue, 4 Dec 2007 01:34:32 +0000 (+0000) Subject: use wxFileName to construct well-formed paths in GetMsgCatalogSubdirs() instead of... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9b3b7f55560a6e43bde4fe0692d08ab7d90c6cf8?ds=inline 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 --- diff --git a/src/common/intl.cpp b/src/common/intl.cpp index 3bc3f8b79f..b718973fea 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -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());