Re: [Pythonmac-SIG] py2app : strange behavior maybe relative to encoding

2013-02-19 Thread Pierre Ratinaud
Hi, I have put this in my code : env = os.environ.copy() if sys.platform == 'darwin' and 'LC_ALL' not in env: env['LC_ALL'] = 'en_US.UTF-8' and now I use Popen like this : Popen(mycommand, env = env) Maybe it's a little less suboptmal then changing user's environment :) But it's no

Re: [Pythonmac-SIG] py2app : strange behavior maybe relative to encoding

2013-02-18 Thread Ronald Oussoren
On 18 Feb, 2013, at 21:22, Pierre Ratinaud wrote: > Hi, >> I'm not sure. What kind of encoding error occurs? The exact error message >> might give a hint as to what's going on here. > The only message I had was in Console. The software I'm using with Popen (R) > is complaining (in french) abou

Re: [Pythonmac-SIG] py2app : strange behavior maybe relative to encoding

2013-02-18 Thread Pierre Ratinaud
Hi, I'm not sure. What kind of encoding error occurs? The exact error message might give a hint as to what's going on here. The only message I had was in Console. The software I'm using with Popen (R) is complaining (in french) about encoding in my script. My tests and googling leave me to th

Re: [Pythonmac-SIG] py2app : strange behavior maybe relative to encoding

2013-02-18 Thread Ronald Oussoren
On 17 Feb, 2013, at 10:02, Pierre Ratinaud wrote: > Hi all, > I have create a .app with py2app for a wxpython application. The resulting > app does not work as expected if I double click on it (it works but somewhere > in the process, an encoding problem appear from another program called with

Re: [Pythonmac-SIG] py2app : strange behavior maybe relative to encoding

2013-02-17 Thread Pierre Ratinaud
Actually, I use Popen from subprocess. I don't know why I have written os.popen :) Regards Pierre Le 17/02/2013 10:14, Chris Rebert a écrit : On Feb 17, 2013 1:05 AM, "Pierre Ratinaud" > wrote: > > Hi all, > I have create a .app with py2app for a wxpython applic

Re: [Pythonmac-SIG] py2app : strange behavior maybe relative to encoding

2013-02-17 Thread Chris Rebert
On Feb 17, 2013 1:05 AM, "Pierre Ratinaud" wrote: > > Hi all, > I have create a .app with py2app for a wxpython application. The resulting app does not work as expected if I double click on it (it works but somewhere in the process, an encoding problem appear from another program called with os.po

[Pythonmac-SIG] py2app : strange behavior maybe relative to encoding

2013-02-17 Thread Pierre Ratinaud
Hi all, I have create a .app with py2app for a wxpython application. The resulting app does not work as expected if I double click on it (it works but somewhere in the process, an encoding problem appear from another program called with os.popen). This problem does not occur if I launch my app