From 9b3b7f55560a6e43bde4fe0692d08ab7d90c6cf8 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 4 Dec 2007 01:34:32 +0000 Subject: [PATCH] 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 --- src/common/intl.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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()); -- 2.45.2