From 8ce12fb1afd9a070eacdc0f3b38df2835551c7b3 Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Thu, 14 Mar 2024 17:00:27 -0400 Subject: [PATCH] Fix Eagle footprint library QA test failure. Unfortunately the KiCad library I/O does not unescape file names so do not escape them in the Eagle board plugin. (cherry picked from commit cf974328336c00b2788b6ed9a10cad0c1aa9bc7d) --- pcbnew/pcb_io/eagle/pcb_io_eagle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/pcb_io/eagle/pcb_io_eagle.cpp b/pcbnew/pcb_io/eagle/pcb_io_eagle.cpp index 94660e3f46..aa4322a2ee 100644 --- a/pcbnew/pcb_io/eagle/pcb_io_eagle.cpp +++ b/pcbnew/pcb_io/eagle/pcb_io_eagle.cpp @@ -1173,7 +1173,7 @@ void PCB_IO_EAGLE::loadLibrary( wxXmlNode* aLib, const wxString* aLibName ) if( !urnOrdinal.IsEmpty() ) pack_ref += wxS( "_" ) + urnOrdinal; - pack_ref = EscapeString( pack_ref, CTX_LIBID ); + ReplaceIllegalFileNameChars( pack_ref, '_' ); m_xpath->Value( pack_ref.ToUTF8() );