On 26.01.2021 09:24, Inada Naoki wrote:
> And we can provide two versions of Python for Windows.
> 
> * "Python (UTF-8 version)" will enable the UTF-8 mode by default.
> * "Python (ANSI version)" will disable the UTF-8 mode by default.
> 
> User can override the default by `-Xutf8` option and `PYTHONUTF8`
> environment variable.
> 
> Does this idea make sense?

Just a word of warning: ANSI version in the Windows world usually
means "this application doesn't support Unicode", so you'd probably
not want to use this term.

Overall, I think the approach with two different binaries
is not going work well. Users will get confused and many problems
will arise due to users installing the wrong version for the apps
they use.

We already let them choose between 64-bit and 32-bit and embedded
vs. installer. Some may understand the consequences of installing
a 32-bit version on a 64-bit OS, but I suppose most don't know
what "embedded" is for (including myself :-)).

If you add UTF-8 vs. Locale dimensions on top, you'd create even
more confusion.

I think it would be better to have the Windows installers
get an option to set the PYTHONUTF8 env var for the user
or system-wide. This would be off initially and default to on
a few years later.

Note: Such a setting would also affect other Python versions
on the system, so the user should take care before enabling it.
Alternatively, a new env var could be used, which older Python
versions don't know anything about, e.g. PYTHONWINUTF8. Python
would then treat this as an alias for PYTHONUTF8.

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Experts (#1, Jan 26 2021)
>>> Python Projects, Coaching and Support ...    https://www.egenix.com/
>>> Python Product Development ...        https://consulting.egenix.com/
________________________________________________________________________

::: We implement business ideas - efficiently in both time and costs :::

   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
           Registered at Amtsgericht Duesseldorf: HRB 46611
               https://www.egenix.com/company/contact/
                     https://www.malemburg.com/
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/MSEC7KXMCVTLUBV5WOWT5AC757AQ747X/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to