7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-19 00:21:36 +00:00

Eeschema: symbol SVG export: don't lower-case

This is inconsistent with how footprints work and adds work for
downstream scripts which need to be aware that they have to process the
symbol name in this way.

Symbols named "syma" and "SYMA" can still collide in the same library on
case-insensitive systems, but this should be avoided by warning/errors
at the library level, rather than by silent overwriting on export.

Relates-To: https://gitlab.com/kicad/code/kicad/-/issues/19370
This commit is contained in:
John Beard 2024-12-24 16:52:57 +08:00
parent e7e59737ad
commit 2f2f445043

View File

@ -803,7 +803,7 @@ int EESCHEMA_JOBS_HANDLER::doSymExportSvg( JOB_SYM_EXPORT_SVG* aSvgJob,
fn.SetPath( aSvgJob->m_outputDirectory );
fn.SetExt( FILEEXT::SVGFileExtension );
filename = symbol->GetName().Lower();
filename = symbol->GetName();
while( wxString::npos
!= ( forbidden_char = filename.find_first_of(