[Kss-devel] problem with enforce_unicde
Godefroid Chapelle
gotcha at bubblenet.be
Thu Jul 30 11:12:49 CEST 2009
Gerhard Weis wrote:
> Hi,
>
> I am using utf-8 as system default character encoding in python. The
> enforce_unicode method in module kss.core.unicode_quirks assumes
> by default ascii encoding, which causes every now and then
> UnicodeDecodeErrors in my plone-site.
>
> I attached a small patch which passes sys.getdefaultencoding() as
> default parameter to enforce_unicde. Works fine here.
Thanks a lot for your patch (sorry for waiting so long to acknowledge it
:-s )
>
> The patch is against kss.core/branch/1.4.
>
> Tests with the patch applied to version 1.4.7 run fine too.
>
> Kind Regards,
>
> Gerhard
>
>
Would you have an idea how to add a test for this bug ?
Thanks
--
Godefroid Chapelle (aka __gotcha) http://bubblenet.be
More information about the Kss-devel
mailing list