Re: [pyxpcom] Python XPCOM extension
by Shane Caraveo other posts by this author
Mar 23 2008 11:07PM messages near this date
view in the new Beta List Site
Re: [pyxpcom] Python XPCOM extension
|
Re: [pyxpcom] Python XPCOM extension
Todd Whiteman wrote:
> lekma wrote:
> > while I agree that on windows and mac it makes sense to build the
> > pyxpcom extension using ucs2, it seems that most linux distro (at
> > least the five i checked: debian, redhat, ubuntu, suse, gentoo) ship a
> > python build in ucs4, so maybe for linux ucs4 should be the default.
> >
>
> I'm still undecided which of ucs2 or ucs4 is better for the linux
> platform. Yes, it seems most of the linux distros are using ucs4 builds
> of python, so ucs4 could make it easier to support python binary modules
> on linux. I'd be interested to know if anyone has had some experience in
> this area?
One thing that should be considered, the Mozilla code base itself is
UCS2 (actually UTF-16). If Python uses UCS4, then every xpcom call that
passes wstring in the IDL will do a string conversion. The more
efficient approach is UCS2 if python is included as part of the extension.
Shane
_______________________________________________
pyxpcom mailing list
pyxpcom@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Todd Whiteman
Lekma
Todd Whiteman
Shane Caraveo
Mark Hammond
Todd Whiteman
Lekma
Paul Everitt
Todd Whiteman
|