#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   
Resolution:          |    Keywords:  encoding
---------------------+------------------------------------------------------
Comment (by ed):

 Replying to [comment:1 paul]:
 > I think this is the correct behavior, btw, because it allows application
 code to set the locale explicitly. So I think we need to check things in
 this order:
 >
 > 1) locale.getlocale() if not (None, None)
 > 2) locale.getdefaultlocale() if no error
 > 3) 'utf-8'
 >
 > But where are we talking about in Dabo? I think it is perfectly fine and
 appropriate for Dabo to default to utf-8 in general, but agree that for
 writing file and directory names we need to use the filesystem encoding,
 >
 > But I could be convinced that App.Encoding should pull from
 locale.getlocale() or locale.getdefaultlocale() instead of the hard-coded
 'utf-8' it does currently.
 >
 > Ed?

 I'm in a little over my head here. One of the disadvantages of being a US-
 based, English-only developer is that you can go through life remaining
 largely ignorant of all these differences.

 I'd recommend changing the code to whatever works for the non-ASCII, non-
 UTF8 file systems, but keeping the defaults for the framework as is. At
 worse this will break someone else's stuff, and we can then try to figure
 out what will work in all (or at least all known) cases.

-- 
Ticket URL: <http://trac.dabodev.com/ticket/1191#comment:3>
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