jwilk / i18nspector

checking tool for gettext POT, PO and MO files
https://jwilk.net/software/i18nspector
MIT License
2 stars 4 forks source link

FreeBSD: broken lib.iconv #3

Open jwilk opened 6 years ago

jwilk commented 6 years ago

I'm getting these test failures on FreeBSD 11.1:

======================================================================
ERROR: tests.test_encodings.test_extra_encoding.test_mb_encode_error
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jwilk/.local/lib/python3.6/site-packages/nose/case.py", line 198, in runTest
    self.test(*self.arg)
  File "/usr/home/jwilk/i18nspector/tests/../tests/tools.py", line 89, in wrapper
    raise IsolatedError('\n\n' + msg)
tests.tools.IsolatedError: 

Traceback (most recent call last):
  File "/usr/home/jwilk/i18nspector/tests/../tests/tools.py", line 66, in wrapper
    f(*args, **kwargs)
  File "/usr/home/jwilk/i18nspector/tests/../tests/test_encodings.py", line 252, in test_mb_encode_error
    u.encode('EUC-TW')
AssertionError: UnicodeEncodeError not raised

======================================================================
FAIL: tests.test_iconv.test_tcvn.test_decode
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jwilk/.local/lib/python3.6/site-packages/nose/case.py", line 198, in runTest
    self.test(*self.arg)
  File "/usr/home/jwilk/i18nspector/tests/../tests/test_iconv.py", line 38, in test_decode
    assert_equal(u, self.u)
AssertionError: '\x00\x00 \x00ạ\x00\x00 \x00\x00\x00 \x00ấ[45 chars]\x00' != 'Do bạch kim rất quý, sẽ để lắp vô xương'

It looks like lib.iconv is completely broken.