[pyicu-dev] Bug in Python 4-byte to ICU UChar?

Jim Fulton jim at zope.com
Thu Dec 1 11:00:02 PST 2005


Jim Fulton wrote:
> Andi Vajda wrote:
...

>> With that 90% assumption in mind, I made the change you suggested. 
>> Since I'm not near a 4 byte unicode python installation (my mac's is 2 
>> byte), could you please try the attached patch out ?
> 
> 
> Um, sure. I found this through code inspection.  I'll have to construct
> a test case of some sort that fails without the patch and suceeds after
> on a Python built with 4-byte unicode.  Wish me luck. :)

Attached. It wasn't that hard. It's also pretty minimal.  I could
probably come up with a more interesting test if I knew ICU and unicode
better. :)

Jim

-- 
Jim Fulton           mailto:jim at zope.com       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_UCS4.py
Type: application/x-httpd-cgi
Size: 1953 bytes
Desc: not available
Url : http://lists.osafoundation.org/pipermail/pyicu-dev/attachments/20051201/b97c224e/test_UCS4.bin


More information about the pyicu-dev mailing list