Re: [Python-ideas] Force UTF-8 option regardless locale

2016-08-30 Thread INADA Naoki
On Wed, Aug 31, 2016 at 4:45 AM, M.-A. Lemburg wrote: > On 30.08.2016 10:29, Victor Stinner wrote: >> Le 30 août 2016 02:05, "INADA Naoki" a écrit : >>> How should the option be set? >> >> I propose to add a new -X utf8 option. Maybe if the use case is important, >> we might add an PYTHONUTF8 env

Re: [Python-ideas] Force UTF-8 option regardless locale

2016-08-30 Thread M.-A. Lemburg
On 30.08.2016 10:29, Victor Stinner wrote: > Le 30 août 2016 02:05, "INADA Naoki" a écrit : >> How should the option be set? > > I propose to add a new -X utf8 option. Maybe if the use case is important, > we might add an PYTHONUTF8 environment variable. > > The problem is that I'm not sure that

Re: [Python-ideas] Force UTF-8 option regardless locale

2016-08-30 Thread Victor Stinner
Le 30 août 2016 02:05, "INADA Naoki" a écrit : > How should the option be set? I propose to add a new -X utf8 option. Maybe if the use case is important, we might add an PYTHONUTF8 environment variable. The problem is that I'm not sure that an env var is the right way to configure Python on such

Re: [Python-ideas] Force UTF-8 option regardless locale

2016-08-29 Thread Nick Coghlan
On 30 August 2016 at 10:05, INADA Naoki wrote: > On Tue, Aug 30, 2016 at 8:14 AM, Victor Stinner > wrote: >> >> I proposed the idea, but I'm not sure that we can have a single option >> for Linux and Windows. Moreover, I never really worked on trying to >> implement "-X utf8" on Linux, because it

[Python-ideas] Force UTF-8 option regardless locale

2016-08-29 Thread INADA Naoki
On Tue, Aug 30, 2016 at 8:14 AM, Victor Stinner wrote: > > I proposed the idea, but I'm not sure that we can have a single option > for Linux and Windows. Moreover, I never really worked on trying to > implement "-X utf8" on Linux, because it looks like the "misconfigured > system" are less and le