Re: [Pythonmac-SIG] wide python config

2011-05-23 Thread Ronald Oussoren

On 23 May, 2011, at 6:22, Ned Deily wrote:

> In article ,
> Jeffrey Denison  wrote:
>> I need assistance for a "wide"  install of Python 2.7 on a G5 running
>> Leopard 10.5.8. Trying to get the config files options set correctly.
>> I'm not using fink.
> 
> Note, it's usually recommended to not use a wide build on OS X:
> 
> http://article.gmane.org/gmane.comp.python.devel/116519
> 
> But, if you must, for 2.7, the relevant ./configure option should be 
> --enable-unicode=ucs4.  So, for a G5 if you want to try to include 
> 64-bit support, try something like (untested!):
> 
>  ./configure --with-universal-archs=all --enable-unicode=ucs4

Why is that? I'd advise to not use 4-byte unicode because the most of the 
system uses a 2-byte unicode (UniChar in the Cocoa and Carbon frameworks). 
There is also a 4-byte wchar_t, but that is basically not used by anything from 
Apple.

Ronald



smime.p7s
Description: S/MIME cryptographic signature
___
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG


Re: [Pythonmac-SIG] wide python config

2011-05-23 Thread Ronald Oussoren
On 23 May, 2011,at 08:15 AM, Ronald Oussoren  wrote:
On 23 May, 2011, at 6:22, Ned Deily wrote:

> In article [email protected]>,
> Jeffrey Denison  wrote:
>> I need assistance for a "wide"  install of Python 2.7 on a G5 running
>> Leopard 10.5.8. Trying to get the config files options set correctly.
>> I'm not using fink.
> 
> Note, it's usually recommended to not use a wide build on OS X:
> 
> http://article.gmane.org/gmane.comp.python.devel/116519
> 
> But, if you must, for 2.7, the relevant ./configure option should be 
> --enable-unicode=ucs4.  So, for a G5 if you want to try to include 
> 64-bit support, try something like (untested!):
> 
>  ./configure --with-universal-archs=all --enable-unicode=ucs4

Why is that? I'd advise to not use 4-byte unicode because the most of the system uses a 2-byte unicode (UniChar in the Cocoa and Carbon frameworks). There is also a 4-byte wchar_t, but that is basically not used by anything from Apple. Never mind, I wasn't fully awake when I wrote that mail and somehow read "system-wide" instead of "wide-unicode".Ronald

___
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG