summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2019-05-06 09:16:25 +0000
committerXavier Morel <xmo@odoo.com>2019-05-06 09:16:25 +0000
commite12b6013d5e52bfbad93dc7fad40f17658490475 (patch)
tree7932f9be94910edba28f5145e5c45a7c53938e26 /addons/web/static/src/xml/base.xml
parent04a535a8d16bd72087e0323f317a1c429febf2bd (diff)
[FIX] base_import: tests failing with older chardet
Some distributions still bundle chardet 2.3, which have some guessing divergences / incompatibilities with python (resolved in 3.x): 1. UTF-{16,32} with BOM is guessed as LE/BE, which when used to decode the string doesn't strip out the BOM. Handle this by checking if the BOM is present and converting the encoding name to the non-marked version in that case. 2. The ISO-8859-1 test string is guessed as ISO-8859-2 (TBF the decoding does make some sense). Allow multiple targets/guesses to "fix" that. closes odoo/odoo#33179 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
0 files changed, 0 insertions, 0 deletions