#11420: Test suite and default encoding on Windows
---------------------------------------------+------------------------------
          Reporter:  richardb                |         Owner:  nobody           
  
            Status:  closed                  |     Milestone:                   
  
         Component:  Testing framework       |       Version:  SVN              
  
        Resolution:  wontfix                 |      Keywords:  
BrokenUnicodeMethod
             Stage:  Design decision needed  |     Has_patch:  1                
  
        Needs_docs:  0                       |   Needs_tests:  0                
  
Needs_better_patch:  0                       |  
---------------------------------------------+------------------------------
Changes (by kmtracey):

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

Comment:

 I don't know if it's common practice, but if it is, it should be
 discouraged.  It certainly cannot be common practice for anyone writing
 code intended to be re-usable. Unfortunately mention of how to do it in a
 popular book may have lured people into using a technique that is a really
 bad idea. It may be tempting to change the default encoding to one where
 you'll never get UnicodeXXcodeErrors, but you are swapping nice obvious
 hard failures for the possibility of silently corrupted data.  And you are
 making your code non-portable.  Some Googling around brings up:

 http://tarekziade.wordpress.com/2008/01/08/syssetdefaultencoding-is-evil/


 http://faassen.n--tree.net/blog/view/weblog/2005/08/02/0

 which make for good reading on the issue.

 With Malcolm's -1 and my own feeling that it would be a bad idea to make
 the test suite hide this, I'm going to close this wontfix.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11420#comment:5>
Django <http://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