[Freeipa-devel] [PATCH 35/35] ticket 1569 - Test DN object non-latin Unicode support

Jan Cholasta jcholast at redhat.com
Tue Aug 9 16:13:18 UTC 2011


On 4.8.2011 01:35, John Dennis wrote:
> The DN unittest was lacking a test for i18n. The unittest was
> updated to store "Hello" in Arabic with both utf-8 and unicode
> and verify the values could be properly retrieved and converted
> to dn string syntax.
>
> During the testing a few problems were discovered and corrected.
>
> * passing in utf-8 caused an ASCII decode error becuase of Python's
>    silly default encoding of ASCII. The fix was to explictly use
>    the utf-8 codec.
>
> * there were a couple of places where encode/decode were not
>    called correctly.
>
> * the internal attr and value members of the AVA class were renamed
>    to explicitly show they are stored as unicode.
>
> Of course the unittest was updated as well.
>
> --
> John Dennis<jdennis at redhat.com>
>
> Looking to carve out IT costs?
> www.redhat.com/carveoutcosts/
>

ACK.

Honza

-- 
Jan Cholasta




More information about the Freeipa-devel mailing list