#2971: Unicode encoding error w/ Windows & defined locale
-----------------------------+----------------------------------------------
Reporter: eblot | Owner: cboos
Type: defect | Status: new
Priority: normal | Milestone: 0.10
Component: general | Version: devel
Severity: major | Resolution:
Keywords: unicode windows |
-----------------------------+----------------------------------------------
Changes (by cboos):
* owner: jonas => cboos
* milestone: => 0.10
Comment:
Using only `locale.getpreferredencoding()` would work on windows,
but not on Linux, where setting the `locale` doesn't seem to affect it
(e.g. after a `locale.setlocale(locale.LC_ALL, 'French')`,
my `locale.getpreferredencoding()` was still 'UTF-8', whereas
`locale.getlocale(locale.LC_TIME)[1]` gave 'ISO8859-1', which was
consistent with the encoding used by `strftime`).
So I guess some platform dependent code is in order here...
--
Ticket URL: <http://projects.edgewall.com/trac/ticket/2971>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets