summaryrefslogtreecommitdiff
path: root/addons/mail/data/mail_shortcode_data.xml
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2017-10-17 13:54:16 +0200
committerXavier Morel <xmo@odoo.com>2017-10-17 16:04:35 +0200
commit90d9605c86540ff446eac46fc368001c1808031a (patch)
tree943f1fba333c6c10172ff26db3242eea226087f2 /addons/mail/data/mail_shortcode_data.xml
parenta0fcd5c7815283e11b26eb821e23fc93ef001f44 (diff)
[FIX] web: encoding issue with moment locales
I don't quite get how it can trigger on user systems (as it apparently requires resetlocale() to fail to set up an UTF-8-encoded-locale somehow, disabling resetlocale() is how I could get the issue triggered on my system), but anyway it's apparently possible for Odoo to run with an ASCII system encoding, and it turns out Python 3 will not use UTF-8 everywhere but will rather use whatever locale.getpreferredencoding(False) yields, which in theory could be completely bonkers. This is an issue when using text IO with an implicit encoding, which is what load_locale (/web/webclient/locale/<lang>) was doing. * Fix by using binary IO * Fix (2) by using direct-passthrough IO with specified encoding, that way we let the WSGI server handle the file streaming Fixes #20075
Diffstat (limited to 'addons/mail/data/mail_shortcode_data.xml')
0 files changed, 0 insertions, 0 deletions