#26692: test_msgfmt_error_including_non_ascii failure on Windows
-------------------------------------+-------------------------------------
     Reporter:  timgraham            |                    Owner:  ramiro
         Type:  Bug                  |                   Status:  assigned
    Component:                       |                  Version:  1.10
  Internationalization               |
     Severity:  Normal               |               Resolution:
     Keywords:  msgfmt i18n windows  |             Triage Stage:  Ready for
  compilemessages non-ascii unicode  |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by timgraham):

 * stage:  Accepted => Ready for checkin


Comment:

 (copying this analysis from the pull request)

 Combination of:

 * Peculiarities of GNU gettext tools handling of error reporting (via
   sdterr)
 * The fact that for this test we need to set the `LANG` env var to `"C"`
   to ensure such error messages are emitted in English
 * Special characteristics of the Windows console regarding handling of
   encoding

 Makes it hard to portably test for the actual content of the `msgfmt(1)`
 error message that includes the culprit Unicode code point, as exercised
 by the
 
`i18n.test_compilation.CompilationErrorHandling.test_msgfmt_error_including_non_ascii`
 test.

 Proposed solution is to simply drop it but still check for other parts
 of the expected error message.

--
Ticket URL: <https://code.djangoproject.com/ticket/26692#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.7e9d395834315a415481354e6fa26509%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to