[Sugar-devel] Unicode strings in translations
Martin Langhoff
martin.langhoff at gmail.com
Thu Aug 16 11:10:39 EDT 2012
On Thu, Aug 16, 2012 at 9:29 AM, Benjamin Berg <benzea at sugarlabs.org> wrote:
> Disclaimer: I have not read the entire discussion.
and you've missed a bit :-)
> So, in Sugar we are mixing python unicode strings, and utf-8 encoded
No. We have been _temporarily_ mixing Python unicode UTF-8 with ASCII strings.
We used to import gtk, which had the side effect of telling Python to
assume any string constant in the code to be unicode UTF-8 instead of
ASCII.
As part of the gtk3 transition, we discovered importing gtk3 doesn't
have that side effect. But we want Python to assume string constants
to be UTF-8, so should tell it so explicitly instead of relying on
side-effects :-) -- look at the emails from dnarvaez and manuq.
Manuq - btw, I agree with upstream that this is not a GTK3/PyGI bug,
it is an improvement.
m
--
martin.langhoff at gmail.com
martin at laptop.org -- Software Architect - OLPC
- ask interesting questions
- don't get distracted with shiny stuff - working code first
- http://wiki.laptop.org/go/User:Martinlanghoff
More information about the Sugar-devel
mailing list