Comment 18 for bug 493997

Revision history for this message
Omar (Pexego) (omar7r) wrote :

Hi all,

I solved this bug with small patch in tools of openerp-server.
ustr method calls to get_encoding() function, this iterable function returns by default utf-8, it it isn't the correct coding then it returns the locale coding, in Linux case utf-8, if it isn't correct, check if the locale coding it's latin1 or iso-8859-1 or cp1252 and returns an equivalent coding, in Linux case it returns utf-8 too. Then for mails that was sent with Windows, if you try to open its in Linux, power email fails because mail coding is for example so-8859-15 or cp1252 and in linux, it never tests in ustr() method. This issue is solve test always returning latin1 or iso-8859-1 or cp1252 after 'utf-8 and locale coding.