[Eric] Re: Three small path Eric4

Tonal tonal at promsoft.ru
Sun Apr 1 13:19:28 BST 2007


Detlev Offenbach wrote:
>> eric4_3.diff - for correct open eric4 if os PATH variable contains dir
>> names in OEM codepage.
> 
> Can you please explain, what the problem is. What happens with the code as 
> distributed?
Win32 Rus contains 2 Russian codepage: ANSI - cp1251 and OEM - cp866.
GUI applications input/output in ANSI codepage, but console applications 
input/output in OEM.
All command prompt utility and OS environment variable has OEM codepage.

My source code and my GUI programs have ANSI codepage. But os.environ 
dictionary may contain string in OEM codapage.
In this case isinpath() may crash in process of converting such string 
to Unicode.
I do not understand how can I learn OEM codepage in all other locales.
QProcess.systemEnvironment resolve this problem.



More information about the Eric mailing list