7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-18 23:21:41 +00:00

Allow unprintable characters in LIB_ID

We were allowing people to paste lower-level ASCII characters into a
symbol name, but not load them.  The characters don't print but they
don't break anything either, so allowing them is the most compatible
method
This commit is contained in:
Seth Hillbrand 2025-03-13 11:39:08 -07:00
parent 2304d10879
commit 54be62b8fa

View File

@ -211,9 +211,6 @@ bool LIB_ID::isLegalChar( unsigned aUniChar )
bool const space_allowed = true;
bool const illegal_filename_chars_allowed = false;
if( aUniChar < ' ' )
return false;
// This list of characters is also duplicated in validators.cpp and footprint.cpp
// TODO: Unify forbidden character lists - Warning, invalid filename characters are not the same
// as invalid LIB_ID characters. We will need to separate the FP filenames from FP names