View Issue Details

IDProjectCategoryView StatusLast Update
0001744FreeCADMerge requestpublic2014-10-11 16:55
Reportershoogen Assigned Towmayer  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version0.15 
Target VersionFixed in Version 
Summary0001744: Use unicode in Unit system
DescriptionThis patch creates proper python unicode objects. And outputs utf-8 in __repr__ methods.
TagsQuantity, unicode
FreeCAD Information

Relationships

child of 0001027 closedshoogen UTF-8 encoded PyString objects are used instead of unicode objects to pass unicode data to the python interpreter 
child of 0000995 assignedyorik Python3 compatibility (Ongoing) 

Activities

shoogen

2014-09-13 21:18

developer   ~0005096

And furthermore it should not expect Latin1 string.
if (PyArg_ParseTuple(args,"s", &string))

shoogen

2014-09-14 10:11

developer   ~0005097

git://github.com/5263/FreeCAD.git quantity-unicode

Related Changesets

FreeCAD: master 6ad50db0

2014-09-14 10:50:45

shoogen


Committer: wmayer Details Diff
fixes 0001744 Use unicode in Unit system Affected Issues
0001744
mod - src/Base/QuantityPyImp.cpp Diff File
mod - src/Base/UnitPyImp.cpp Diff File
mod - src/Base/UnitsApiPy.cpp Diff File
mod - src/Mod/Draft/DraftGui.py Diff File

FreeCAD: master f2367c6c

2014-10-03 11:51:03

shoogen


Committer: yorik Details Diff
bugfix in unit parser

partly revert to 810fadab233afe9afbf3ee31ff352755ed7084eb
and change python string handling to "et" method
Affected Issues
0001744
mod - src/Base/QuantityPyImp.cpp Diff File
mod - src/Base/UnitPyImp.cpp Diff File
mod - src/Base/UnitsApiPy.cpp Diff File

Issue History

Date Modified Username Field Change
2014-09-13 20:22 shoogen New Issue
2014-09-13 20:22 shoogen Relationship added child of 0001027
2014-09-13 21:18 shoogen Note Added: 0005096
2014-09-13 21:19 shoogen Relationship added child of 0000995
2014-09-13 21:20 shoogen Summary Unit system returns '\xb0' (latin-1 for °) => Unit system uses latin1 byte string in its python interface
2014-09-14 10:11 shoogen Note Added: 0005097
2014-09-14 10:21 shoogen Category Bug => Merge request
2014-09-14 10:21 shoogen Summary Unit system uses latin1 byte string in its python interface => Use unicode in Unit system
2014-09-14 10:21 shoogen Description Updated View Revisions
2014-09-15 17:21 shoogen Tag Attached: Quantity
2014-09-15 17:22 shoogen Tag Attached: unicode
2014-09-20 14:10 wmayer Changeset attached => FreeCAD Master master 6ad50db0
2014-09-20 14:10 wmayer Assigned To => wmayer
2014-09-20 14:10 wmayer Status new => closed
2014-09-20 14:10 wmayer Resolution open => fixed
2014-10-11 16:55 shoogen Changeset attached => FreeCAD Master master f2367c6c