#27696: Fix for #22561 does not work properly with Cyrillic strings
--------------------------------------------+------------------------
               Reporter:  Pavel Pokrovskiy  |          Owner:  nobody
                   Type:  Bug               |         Status:  new
              Component:  Core (Mail)       |        Version:  1.10
               Severity:  Normal            |       Keywords:
           Triage Stage:  Unreviewed        |      Has patch:  0
    Needs documentation:  0                 |    Needs tests:  0
Patch needs improvement:  0                 |  Easy pickings:  0
                  UI/UX:  0                 |
--------------------------------------------+------------------------
 Fix for #22561 does not work properly on Cyrillic strings.

 Tried it out with following snippet:

 https://gist.github.com/ppokrovsky/d06d0d9e3c8f55bf15984ecd22954683

 with body set to {{{ test_body_lat }}}, the {{{has_long_lines}}} flag in
 {{{ django.core.mail.message.SafeMIMEText() }}} is set to {{{ True }}} and
 therefore correctly applies 'quoted-printable' encoding, while when body
 is set to {{{ test_body_ru }}}, it leaves {{{has_long_lines}}} as {{{
 False }}} therefore leaving default charset, which results in broken email
 body.

--
Ticket URL: <https://code.djangoproject.com/ticket/27696>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/053.686e00201dfe3720e9518afc0647b51b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to