#1191: dabo uses utf-8 instead of cp1252 as default encoding on Windows
----------------------+-----------------------------------------------------
 Reporter:  cito      |       Owner:  somebody
     Type:  defect    |      Status:  new     
 Priority:  major     |   Milestone:  0.8.3   
Component:  ui        |     Version:  0.8.4   
 Keywords:  encoding  |  
----------------------+-----------------------------------------------------
 The default encoding on Windows is actually cp1252, but dabo uses utf-8
 instead. Under Linux, the default encoding could also be something
 different, in which case the same problem appears here as well.

 This happens because dabo uses getlocale() to determine the default
 encoding (in several places), but getlocale() usually returns None and so
 dabo falls back to a hardcoded default of 'utf-8' which is not appropriate
 under Windows for example.

 Instead (or in addition, if getlocale() returns None), it may be better to
 use getdefaultlocale()or getpreferredencoding() which correctly returns
 'cp1252' on Win.

-- 
Ticket URL: <http://trac.dabodev.com/ticket/1191>
Dabo Trac <http://trac.dabodev.com>
Trac Page for Dabo


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to