pombreda / python-astm

Automatically exported from code.google.com/p/python-astm
Other
0 stars 1 forks source link

Generated checksum is wrong for unicode non-ascii data #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
codec.encode() takes unicode input and returns unicode output with checksum 
value that depends on message bytes. After that result data get encoded by 
specified in constants encoding, making bounded checksum completely wrong. Epic 
fail (:

Original issue reported on code.google.com by kxepal on 28 Jan 2013 at 7:08

GoogleCodeExporter commented 9 years ago
Fixed in rf2f422a126ad  

Original comment by kxepal on 30 Jan 2013 at 12:18