#10335: tzinfo.py should use getdefaultencoding instead of getdefaultlocale[1]
-------------------------------------+--------------------------------------
          Reporter:  gthb            |         Owner:  nobody                   
                              
            Status:  new             |     Milestone:  1.1                      
                              
         Component:  Core framework  |       Version:  1.0                      
                              
        Resolution:                  |      Keywords:  locale encoding 
getdefaultlocale getdefaultencoding mac
             Stage:  Accepted        |     Has_patch:  1                        
                              
        Needs_docs:  0               |   Needs_tests:  0                        
                              
Needs_better_patch:  0               |  
-------------------------------------+--------------------------------------
Comment (by mtredinnick):

 I'm nervous about this. `sys.setdefaultencoding` should really never be
 called. It has too many dangerous side effects and is only in the language
 by accident (long history; search python-dev archives for details if you
 really care).

 A better solution would be preferred. I'm not convinced that Django's
 behaviour is actually incorrect here: it asks for the system locale and is
 given the right answer (since the user's system is set up to return their
 preference). The problem is that we don't necessarily understand that
 answer. Maybe that's the level it needs to be addressed on.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10335#comment:4>
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to