]> git.saurik.com Git - wxWidgets.git/commitdiff
switched to wxLocale usage for string encoding
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 8 Jun 2004 05:28:53 +0000 (05:28 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 8 Jun 2004 05:28:53 +0000 (05:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27687 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/filefn.cpp

index ba3a3c83c604f74e3c41813e4820c384a68ccb4e..e2270201730cb94c12673c4532c951838940b428 100644 (file)
@@ -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, "");