From ad6857f131c69a4222cac0d52da8b70cc126f5b9 Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Mon, 18 May 2020 15:47:19 -0400 Subject: [PATCH] Eeschema: fix copy and paste issue when non-C locales are involved. Fixes https://gitlab.com/kicad/code/kicad/issues/4449 --- eeschema/sch_sexpr_plugin.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eeschema/sch_sexpr_plugin.cpp b/eeschema/sch_sexpr_plugin.cpp index 9bb336791a..1b6071acc0 100644 --- a/eeschema/sch_sexpr_plugin.cpp +++ b/eeschema/sch_sexpr_plugin.cpp @@ -779,6 +779,8 @@ void SCH_SEXPR_PLUGIN::Format( EE_SELECTION* aSelection, OUTPUTFORMATTER* aForma { wxCHECK( aSelection && aFormatter, /* void */ ); + LOCALE_IO toggle; + m_out = aFormatter; size_t i; @@ -2342,6 +2344,7 @@ LIB_PART* SCH_SEXPR_PLUGIN::ParsePart( LINE_READER& aReader, int aFileVersion ) void SCH_SEXPR_PLUGIN::FormatPart( LIB_PART* part, OUTPUTFORMATTER & formatter ) { + SCH_SEXPR_PLUGIN_CACHE::SaveSymbol( part, formatter ); }