From 801f3855213d6c94d34e169e4d04bb9838cd7662 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 19 Nov 2020 14:37:33 +0100 Subject: [PATCH] Eeschema: fix a UTF8 issue created by my commit 993a684 --- eeschema/sch_plugins/kicad/sch_sexpr_plugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eeschema/sch_plugins/kicad/sch_sexpr_plugin.cpp b/eeschema/sch_plugins/kicad/sch_sexpr_plugin.cpp index 0cf95e6227..05e5c2023e 100644 --- a/eeschema/sch_plugins/kicad/sch_sexpr_plugin.cpp +++ b/eeschema/sch_plugins/kicad/sch_sexpr_plugin.cpp @@ -1599,7 +1599,8 @@ void SCH_SEXPR_PLUGIN_CACHE::SaveSymbol( LIB_PART* aSymbol, OUTPUTFORMATTER& aFo for( auto unit : units ) { - name = aFormatter.Quotew( unitName ); // Add quotes and escape chars like ") + // Add quotes and escape chars like ") to the UTF8 unitName string + name = aFormatter.Quotes( unitName ); name.pop_back(); // Remove last char: the quote ending the string. aFormatter.Print( aNestLevel + 1, "(symbol %s_%d_%d\"\n",