i18n.test_compilation.CompilationErrorHandling.test_msgfmt_error_including_non_ascii fails
======================================================================
FAIL: test_msgfmt_error_including_non_ascii (i18n.test_compilation.CompilationErrorHandling)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/sergey/dev/django/tests/i18n/test_compilation.py", line 176, in test_msgfmt_error_including_non_ascii
self.assertIn("'�' cannot start a field name", six.text_type(err))
AssertionError: u"'\ufffd' cannot start a field name" not found in u'Execution of msgfmt failed: /home/sergey/dev/django/tests/i18n/commands/locale/ko/LC_MESSAGES/django.po:24: \u0421\u0442\u0440\u043e\u043a\u0430 \xabmsgstr\xbb \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u043f\u043e\u0434 \u0444\u043e\u0440\u043c\u0430\u0442 Python brace, \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0439 \xabmsgid\xbb. \u041f\u0440\u0438\u0447\u0438\u043d\u0430: \u0412 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0435 \u043d\u043e\u043c\u0435\u0440 0 \u0441 \xab\ufffd\xbb \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c\u0441\u044f \u0438\u043c\u044f \u043f\u043e\u043b\u044f.\nmsgfmt: \u043d\u0430\u0439\u0434\u0435\u043d\u0430 1 \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430\n'
msgfmt version is 0.19.6.
Change History
(5)
Triage Stage: |
Unreviewed → Accepted
|
Type: |
Bug → Cleanup/optimization
|
Owner: |
changed from nobody to Sergey Fedoseev
|
Status: |
new → assigned
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
This is due to localized gettext output. I wonder if there is a way to force English messages (LANG=C?).