[Python-Dev] Reject characters bigger than U+10FFFF and Solaris issues

Stefan Krah stefan at bytereef.org
Thu Dec 8 14:42:11 CET 2011


Victor Stinner <victor.stinner at haypocalc.com> wrote:
> The problem is not directly in the C localeconv() function, but in  
> mbstowcs() with the hu_HU locale.

Ah, I see.

> You can try my test program for this issue:
> http://bugs.python.org/file23876/localeconv_wchar.c

Can't test on OpenSolaris, since Oracle removed the package repo and
I need the ISO locales.


> Stefan: would you accept that locale.localeconv() and locale.strxfrm()
> stop working (instead of returning invalid data) on Solaris in certains
> cases (it looks like the issue depends on the locale and the OS  
> version)? It can be a motivation to fix the root of the issue ;-)

Yes, if the cause is a broken mbstowcs() that sounds good.



Stefan Krah




More information about the Python-Dev mailing list