Re: boa & unicode : sitecustomize.py not read

"Werner F. Bruhin" <[email protected]>
Newsgroups gmane.comp.ide.boa-constructor.user
Message-ID <[email protected]>
Denis,

spir wrote:
> Thank you for your help, Werner.
> I work on windows with last versions installed I guess :
> * win XP SP3
> * python 2.5.2
> * wxPython 2.8.81
> * boa 0.6.1
>
> Actually, you're right, I use the exe version of boa, which explains 
> why sitecustomize.py does not work. I should have noted that myself...
> Still, the strange thing is : I just installed ACtiveState's 
> ActivePython instead of the standard Cpython. And *now*, boa works 
> perfectly with unicode, both when opening and running a file. wxPython 
> modules such as the file dialog, too (before I had warnings at each 
> directory change, even if there are only plain ascii file and 
> directory names).
No idea, I thought that ActivePython is just a "packaged" up Cpython 
with some other modules, but as they are always lagging a bit behind I 
prefer to get the packages/modules I need and to upgrade them when it 
fits into my plans.
>
> I would really enjoy understanding. Does it mean that ActivePython is 
> internally built using unicode ? And written in order to be able to 
> parse unicode source files ? If it uses utf-8, then ascii users would 
> not even notice it (characters < 128 still coded on a single byte).
> Anyway, this fact shows that I still don't get fully the way python 
> copes with non-ascii stuff. I don't mean non-ascii data, or the 
> unicode type of strings, but the encoding of the source code itself.
You might want to search with Google there are lots of 
references/posts/wiki pages out there.  It is still a mystery to me, 
also I think I have my application converted over to Unicode, actually 
utf-8, but still testing.
>
> greetings, denis
>
> PS : Do you know about a programming language in which variable and 
> object _names_ can be non-ascii ? I think in the XXIth century this 
> should be possible ;-)
You probably could today with Python, also it might be a lot easier with 
Python 3x as I believe it will be handling Unicode "natively", i.e. it 
will be the default and no longer ascii.

I am a native German speaker but all the code in my app uses English for 
all objects etc etc, and I then use gettext to translate all the user 
visible stuff into German and French.

Werner

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.