can not call str(error), it is not safe for i18n env
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
WSME |
Fix Released
|
Undecided
|
Lucas Alvares Gomes |
Bug Description
For i18n env, the error string is non-english message in unicode format already, so we call str(error) again to encode to unicode again will cause the UnicodeEncodeError.
File "/usr/lib/
return self.app(environ, start_response)
File "/usr/lib/
return self.applicatio
File "/usr/lib/
app_iter = self.app(environ, replacement_
File "/usr/lib/
return super(Pecan, self)._
File "/usr/lib/
self.
File "/usr/lib/
result = controller(*args, **kwargs)
File "/usr/lib/
pecan.
File "/usr/lib/
else str(error)
UnicodeEncodeError: 'ascii' codec can't encode character u'\uff21' in position 3: ordinal not in range(128)
Changed in wsme: | |
assignee: | nobody → Lucas Alvares Gomes (lucasagomes) |
Changed in wsme: | |
milestone: | none → 0.8.0 |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/175439
Review: https:/