#21725: Javascript translations fail with non-BMP characters
-------------------------------------+-------------------------------------
     Reporter:  nedbatchelder        |                    Owner:  MattBlack
         Type:  Bug                  |                   Status:  new
    Component:                       |                  Version:  1.6
  Internationalization               |               Resolution:
     Severity:  Normal               |             Triage Stage:  Accepted
     Keywords:                       |      Needs documentation:  0
    Has patch:  0                    |  Patch needs improvement:  0
  Needs tests:  0                    |                    UI/UX:  0
Easy pickings:  0                    |
-------------------------------------+-------------------------------------
Changes (by Honza_Kral):

 * status:  closed => new
 * resolution:  fixed =>


Comment:

 I am getting consistent failures since this was merge in python 2 (not
 python 3) on mac:
 {{{
 ======================================================================
 FAIL: test_javascript_quote_unicode (utils_tests.test_text.TestUtilsText)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/Users/honza/work/django/tests/utils_tests/test_text.py", line
 162, in test_javascript_quote_unicode
     self.assertEqual(text.javascript_quote(input), output)
 AssertionError: u"<script>alert(\\'Hello \\\\xff.\\n
 Wel\\ud835\\udd43come\\there\\r\\');<\\/scr [truncated]... !=
 u"<script>alert(\\'Hello \\\\xff.\\n
 Wel\U0001d543come\\there\\r\\');<\\/script> [truncated]...
 - <script>alert(\'Hello \\xff.\n
 Wel\ud835\udd43come\there\r\');<\/script>?
 ^^^^^^^^^^^^
 + <script>alert(\'Hello \\xff.\n
 Wel\ud835\udd43come\there\r\');<\/script>?
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/21725#comment:5>
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/071.626a9746c4dc1605a8b3e4ae3c0c366e%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to