Fix eagle_plugin issue (File not found) under Windows.
This commit is contained in:
parent
20a6b7ea70
commit
2475b2b6f7
|
@ -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;
|
||||
}
|
||||
|
||||
*/
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue