From: Stefan Csomor Date: Tue, 8 Jun 2004 05:28:53 +0000 (+0000) Subject: switched to wxLocale usage for string encoding X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/88e29a58f1cac9064ae4e1bc97be3867f2d60b77 switched to wxLocale usage for string encoding git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27687 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index ba3a3c83c6..e227020173 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -52,7 +52,6 @@ #if defined(__WXMAC__) #include "wx/mac/private.h" // includes mac headers - #include "wx/font.h" #endif #ifdef __WXWINCE__ @@ -943,7 +942,7 @@ wxString wxMacFSSpec2MacFilename( const FSSpec *spec ) #endif CFStringRef cfString = CFURLCopyFileSystemPath(fullURLRef, pathstyle); ::CFRelease( fullURLRef ) ; - return wxMacCFStringHolder(cfString).AsString(wxFont::GetDefaultEncoding()); + return wxMacCFStringHolder(cfString).AsString(wxLocale::GetSystemEncoding()); } strcpy(thePath, "");