unknown locale de_DE at euro

vincent wehren vincent at visualtrans.de
Sun May 12 15:13:28 EDT 2002


"To get the encoding" pretty much sums it up.  I manage the translation 
center of a vendor of industry-specific ERP systems. Now, apart from the 
translation effort, a lot of my focus is on issues such as encodings, code 
pages, and so on. I therefore often use a python script to "spy" the 
default encoding as well as the keyboard layout of the os - for info 
purposes, it is not used in any of our commercial apps. As we are currently 
porting our code to Linux, I was putting my two cents in by trying to get 
aware of locale issues on linux. This had me calling a Python script which 
used "getdefaultlocale()" to obtain the encoding.....

(...Python was introduced in our software as a scripting language for 
end-users and can be deployed in the print engine, in the task automation 
toolset, and can be used to manipulate the system's GUI -all pretty nifty 
stuff!. Not coming from a programming background per se, Python immediately 
caught my interest, as it could help me to get a lot of stuff done without 
having to "ask" busy developers - and it sure did. It's greatfully used to 
convert file encodings, write XML-based reports, translation tool 
automation, and so on!)


Regards,
Vincent


Martin v. Loewis wrote:

> vincent wehren <vincent at visualtrans.de> writes:
> 
>> Since I started off using Python on a win32 environment,
>> locale_langinfo() had never been an option;
> 
> Can you please explain what you need this function *for*?
> 
> I assume "to get the encoding", but that still would not be specific
> enough for my purposes - then the question is "what do you need the
> encoding for?"
> 
> Regards,
> Martin




More information about the Python-list mailing list