#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 paul):
The locale stuff is frustrating because it behaves differently on
different platforms. I think on all platforms, though, locale.getlocale()
will always return (None, None) until initialized by e.g.:
{{{
locale.setlocale(locale.LC_ALL, locale.getdefaultlocale())
}}}
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?
--
Ticket URL: <http://trac.dabodev.com/ticket/1191#comment:1>
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]