Re: [python-win32] LOCALE related stuff Re: Setting environment

2005-05-11 Thread Andrew MacIntyre
> From: Nalli Dinesh > > I really don;t think so. I looked at process mamangement in > python. By default child process inherits all the environment > variables from parent process. In case if a python > application uses popen3 to run a command in a > subprocess(child) then, before that whatev

Re: [python-win32] LOCALE related stuff Re: Setting environment

2005-05-11 Thread Nalli Dinesh
I really don;t think so. I looked at process mamangement in python. By default child process inherits all the environment variables from parent process. In case if a python application uses popen3 to run a command in a subprocess(child) then, before that whatever Environment variables u create or s

Re: [python-win32] LOCALE related stuff Re: Setting environment

2005-05-11 Thread Andrew MacIntyre
> From: Nalli Dinesh > > Hmm. I tried out this patch. This patch is about adding > update function to os.py. > Update is removed in python2.4, now adding this patch gave me > access to use update in python2.4 My problem persists. > locale.setlocale doesn't work even though we set LANG > enviro

Re: [python-win32] LOCALE related stuff Re: Setting environment

2005-05-11 Thread Nalli Dinesh
Hmm. I tried out this patch. This patch is about adding update function to os.py. Update is removed in python2.4, now adding this patch gave me access to use update in python2.4 My problem persists. locale.setlocale doesn't work even though we set LANG environment variable using update function. I

Re: [python-win32] LOCALE related stuff Re: Setting environment

2005-05-11 Thread Nalli Dinesh
wow.Thanks Roger for letting the group know about the bug fix on this os.environ issue. I never used python2.4.1. But I don;t intend as of now to move to 2.4.1 from 2.4. And the link u gave me to see the bug fix has a patch code below to add to os.py file in python2.4 as a bug fix. How do I integra

[python-win32] Re: LOCALE related stuff Re: Setting environment

2005-05-11 Thread Roger Upole
> Tim/Paul/Tony > Thanks for the suggestions and bringing clarity to the issue. After > understanding your suggestions, I want to go striaght to the actual > issue down below that made me to post environment issue. > The actual issue/Problem: > Its kind of funny tome right now, but letme shoot the

Re: [python-win32] LOCALE related stuff Re: Setting environment variables in windows from Python Programs-

2005-05-11 Thread Nalli Dinesh
There is no space between the quotes in locale.setlocale(locale.LC_ALL, ''). And I tried setting the Variable like the way u suggested: >import os >os.environ['LANG'] = 'ja_JP' >import locale >locale.setlocale(locale.LC_ALL, '') >import sys >import pygtk It doesn;t change m

Re: [python-win32] LOCALE related stuff Re: Setting environment variables in windows from Python Programs-

2005-05-11 Thread Tim Roberts
Nalli Dinesh wrote: >I using locale.setlocale and u guys know when we use this setlocale. >Yes I am working on Localising my application-a pygtk application. >When one says >import locale >locale.setlocale(locale.LC_ALL, ' ') > > You don't really have a blank space between those quotes, do you

[python-win32] LOCALE related stuff Re: Setting environment variables in windows from Python Programs-

2005-05-11 Thread Nalli Dinesh
Tim/Paul/Tony Thanks for the suggestions and bringing clarity to the issue. After understanding your suggestions, I want to go striaght to the actual issue down below that made me to post environment issue. The actual issue/Problem: Its kind of funny tome right now, but letme shoot the problem so t

Re: [python-win32] Setting environment variables in windows from Python Programs

2005-05-11 Thread Tim Roberts
On Tue, 10 May 2005 15:41:30 -0700, Tony C <[EMAIL PROTECTED]> wrote: >Your example didn't try to define the variable, it only attempted to >look at it's current value > >try this > > >>> C:\Tmp>set LANG >>> Environment variable LANG not defined >>> >>> > >C:\tmp> set LANG="SOME_LANGUAGE