TEP 001: Fully switch to unicode (was: [Thuban-list] Problem with Thuban in Ubuntu)
Bernhard Reiter
bernhard at intevation.de
Wed Apr 25 10:46:38 CEST 2007
Thuban Enhancement Proposal 001:
(20070425ber)
Bernhard Reiter <bernhard at intevation.de>
Fully switch to use of python unicode objects internally.
Throw out special translation modes for other internal encodings
like utf8 or latin1.
Rational:
* Simplification: It would require less code and less branches.
* Fixes problems of Thuban 1.2.0 where not all return values from wx
in a unicode build are already translated back to internal encoding.
* No need to keep other encodings around as the main targets GTK and Windows
can build wxPython in unicode well and it seems to be default,
e.g. in Debian since wxPython 2.5.4.1.
How to do it:
Test the already build in internal_encoding = "unicode", if necessary add
a comand line version.
Use wxversions to hard-select 2.6-unicode, also test for wx.USE_UNICODE
and bail out if we cannot have this.
Remove code in Thuban/__init__.py and Thuban/UI/__init__.py and change the
places where that funcation have been used.
Please all comment.
Bernhard
On Wednesday 25 April 2007 02:34, Bernhard Reiter wrote:
> TODO:
> 20070425 Check for all GetString() calls and reconvert the results
> with internal_from_wxstring().
>
> 20070425 Check for all string return values, e.g. dlg.GetPaths()
> in Thuban/UI/mainwindow.py and use
> internal_from_wxstring().
--
Managing Director - Owner: www.intevation.net (Free Software Company)
Germany Coordinator: fsfeurope.org. Coordinator: www.Kolab-Konsortium.com.
Intevation GmbH, Osnabrück, DE; Amtsgericht Osnabrück, HRB 18998
Geschäftsführer Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20070425/bd19d9ef/attachment.bin
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)