[FIX] calendar: support non-ascii chars in date/time format
authorOlivier Dony <odo@openerp.com>
Thu, 20 Nov 2014 17:16:31 +0000 (18:16 +0100)
committerOlivier Dony <odo@openerp.com>
Thu, 20 Nov 2014 17:16:41 +0000 (18:16 +0100)
commitcc762004ede6d74a272cfbdc5ee8dc582da68158
tree04460465a83eeec137923ea516e9afbd485ddd6e
parent4c550d73c878e2ff3dae725ef739db6e6f9539bd
[FIX] calendar: support non-ascii chars in date/time format

The calendar module generates string values with
a date/time formatted according to the user
language. Those formats may contain non-ascii
characters and are read as unicode strings,
but fed to str{p,t}time, which only accepts
byte strings (in Python 2).

This would cause an exception when loading calendar
notifications for a user using e.g. Chinese with
some CJK unicode chars in the date/time format.
addons/calendar/calendar.py