Symbol editor: use C locale for copy and paste.
Fixes https://gitlab.com/kicad/code/kicad/issues/5223
This commit is contained in:
parent
e44c44f62c
commit
fb38344e2f
|
@ -2197,6 +2197,7 @@ bool SCH_SEXPR_PLUGIN::IsSymbolLibWritable( const wxString& aLibraryPath )
|
||||||
|
|
||||||
LIB_PART* SCH_SEXPR_PLUGIN::ParsePart( LINE_READER& aReader, int aFileVersion )
|
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;
|
LIB_PART_MAP map;
|
||||||
SCH_SEXPR_PARSER parser( &aReader );
|
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 )
|
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 );
|
SCH_SEXPR_PLUGIN_CACHE::SaveSymbol( part, formatter );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue