diff --git a/src/App/DocumentPyImp.cpp b/src/App/DocumentPyImp.cpp index bfcbf04b71..cd27cd4900 100644 --- a/src/App/DocumentPyImp.cpp +++ b/src/App/DocumentPyImp.cpp @@ -341,7 +341,7 @@ PyObject* DocumentPy::openTransaction(PyObject *args) } #else else if (PyUnicode_Check(value)) { - PyObject* unicode = PyUnicode_AsLatin1String(value); + PyObject* unicode = PyUnicode_AsUTF8String(value); cmd = PyString_AsString(unicode); Py_DECREF(unicode); } diff --git a/src/Mod/Arch/ArchWall.py b/src/Mod/Arch/ArchWall.py index 46bce12f4d..f0e4e576b4 100644 --- a/src/Mod/Arch/ArchWall.py +++ b/src/Mod/Arch/ArchWall.py @@ -271,7 +271,7 @@ class _CommandWall: self.Activated() def addDefault(self,l): - FreeCADGui.doCommand('base=FreeCAD.ActiveDocument.addObject("Sketcher::SketchObject","'+translate('Arch','WallTrace')+'")') + FreeCADGui.doCommand('base=FreeCAD.ActiveDocument.addObject("Sketcher::SketchObject","WallTrace")') FreeCADGui.doCommand('base.Placement = FreeCAD.DraftWorkingPlane.getPlacement()') FreeCADGui.doCommand('base.addGeometry(trace)') FreeCADGui.doCommand('wall = Arch.makeWall(base,width='+str(self.Width)+',height='+str(self.Height)+',align="'+str(self.Align)+'")')