From 150b7cd4e2de152919280604364b58b1fd7d7843 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sun, 3 Jun 2012 17:47:53 +0200 Subject: [PATCH] Fix eagle_plugin issue (File not found) under Windows. --- pcbnew/eagle_plugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/eagle_plugin.cpp b/pcbnew/eagle_plugin.cpp index ace1997afd..e3924f5b30 100644 --- a/pcbnew/eagle_plugin.cpp +++ b/pcbnew/eagle_plugin.cpp @@ -975,7 +975,7 @@ BOARD* EAGLE_PLUGIN::Load( const wxString& aFileName, BOARD* aAppendToMe, PROPE // 8 bit "filename" should be encoded according to disk filename encoding, // (maybe this is current locale, maybe not, its a filesystem issue), // and is not necessarily utf8. - std::string filename = (const char*) aFileName.fn_str(); + std::string filename = (const char*) aFileName.char_str( wxConvFile ); read_xml( filename, doc, xml_parser::trim_whitespace | xml_parser::no_comments ); @@ -2443,4 +2443,4 @@ bool EAGLE_PLUGIN::IsFootprintLibWritable( const wxString& aLibraryPath ) return true; } -*/ \ No newline at end of file +*/