[issue43364] Add shortcut to enable UTF-8 mode in start menu.

Eryk Sun report at bugs.python.org
Thu Mar 4 08:14:39 EST 2021


Eryk Sun <eryksun at gmail.com> added the comment:

> I'm always very hesitant to modify system-wide (or user-wide) settings 
> like this though. I'd be more comfortable if we made it a PYTHONUTF8_310
> variable that _only_ applies to that specific version. Otherwise someone
> might install an update and break existing apps.

Yes, if the installer directly sets an environment variable, then the setting should be specific to the installed version, such as PYTHONUTF8_310-32.

Maybe this could be implemented more generally by supporting a "PYTHONX_{py_version_short_plat}" environment variable that contains a list of -X implementation-specific boolean options to enable by default, e.g. set "PYTHONX_3.10-32=utf8;dev". In POSIX, name it "PYTHONX_{py_version_short}". In Windows, "{py_version_short_plat}" would be sys.winver.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43364>
_______________________________________


More information about the Python-bugs-list mailing list