[Freeipa-devel] [PATCH] fix encoding of loaded templates

Stephen Gallagher sgallagh at redhat.com
Tue Jul 29 13:26:52 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Rob Crittenden wrote:
> We used to manually load the template files for the edit pages using
> turbogears.meta.load_kid_template(). Unfortunately this went through the
> one code path where encoding was completely ignored. It ended up
> defaulting to sys.getdefaultencoding() which is 'ascii'. So even though
> most of the templates are loaded as 'utf-8' the few that really mattered
> weren't.
> 
> The fix is to call kid.load_template() ourselves and set the encoding of
> the class we just loaded to either the setting in the app.cfg file or to
> the normal default value of 'utf-8'.
> 
> This does not remove all i18n issues. We still cannot handle non-ascii
> characters that will appear in the DN (group name and uid are two I know
> of).
> 
> rob

ack
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkiPGpwACgkQc7MaxVic+2q/GwCgpXtUHoOwtqlgahhrRfno8GAm
mh0Anix0kkbaYZQ/bsPsryDirHo+xJF0
=mRax
-----END PGP SIGNATURE-----




More information about the Freeipa-devel mailing list