[Python-Dev] please consider changing --enable-unicode default to ucs4 (original) (raw)

M.-A. Lemburg mal at egenix.com
Wed Oct 7 22:13:45 CEST 2009


Ronald Oussoren wrote:

On 7 Oct, 2009, at 20:05, M.-A. Lemburg wrote:

If we do go for a change, we should use sizeof(wchart) as basis for the new default - on all platforms that provide a wchart type. I'd be -1 on that. Sizeof(wchart) is 4 on OSX, but all non-Unix API's that deal with Unicode text use ucs16.

Is that true for non-Carbon APIs as well ?

This is what I found on the web (in summary):

Apple chose to go with UTF-16 at about the same time as Microsoft did and used sizeof(wchar_t) == 2 for Mac OS. When they moved to Mac OS X, they switched wchar_t to sizeof(wchar_t) == 4.

-- Marc-Andre Lemburg eGenix.com

Professional Python Services directly from the Source (#1, Oct 07 2009)

Python/Zope Consulting and Support ... http://www.egenix.com/ mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/


::: Try our new mxODBC.Connect Python Database Interface for free ! ::::

eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 http://www.egenix.com/company/contact/



More information about the Python-Dev mailing list