Symbol editor: use C locale for copy and paste.

Fixes https://gitlab.com/kicad/code/kicad/issues/5223
This commit is contained in:
Wayne Stambaugh 2020-08-18 14:12:58 -04:00
parent e44c44f62c
commit fb38344e2f
1 changed files with 2 additions and 0 deletions

View File

@ -2197,6 +2197,7 @@ bool SCH_SEXPR_PLUGIN::IsSymbolLibWritable( const wxString& aLibraryPath )
LIB_PART* SCH_SEXPR_PLUGIN::ParsePart( LINE_READER& aReader, int aFileVersion )
{
LOCALE_IO toggle; // toggles on, then off, the C locale.
LIB_PART_MAP map;
SCH_SEXPR_PARSER parser( &aReader );
@ -2210,6 +2211,7 @@ LIB_PART* SCH_SEXPR_PLUGIN::ParsePart( LINE_READER& aReader, int aFileVersion )
void SCH_SEXPR_PLUGIN::FormatPart( LIB_PART* part, OUTPUTFORMATTER & formatter )
{
LOCALE_IO toggle; // toggles on, then off, the C locale.
SCH_SEXPR_PLUGIN_CACHE::SaveSymbol( part, formatter );
}