#17566: RegexURLResolver.__repr__(self) is not unicode safe.
-------------------------------+-------------------------
     Reporter:  otto           |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  Core (URLs)    |    Version:  1.4-alpha-1
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  1
Easy pickings:  0              |      UI/UX:  0
-------------------------------+-------------------------
 This is a sister to the (fixed) tickets #15795, #16158.

 RegexURLResolver.__repr__(self) can throw a UnicodeDecodeError. The
 problem comes from the parameter self.urlconf_name. The exception is
 "UnicodeDecodeError: 'ascii' codec can't decode byte... (etc)."

 A simple (and possibly naive) solution is to replace the occurrence of
 self.urlconf_name with str(self.urlconf_name).decode('utf-8') in
 __repr__(self). This seems to fix it for now, but someone who is working
 on this module might want to take a closer look.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17566>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to