[Python-ideas] Re: Provide UTF-8 version of Python for Windows.

2021-01-26 Thread Inada Naoki
nOn Tue, Jan 26, 2021 at 5:53 PM M.-A. Lemburg wrote: > > 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 bet

[Python-ideas] Re: Provide UTF-8 version of Python for Windows.

2021-01-26 Thread M.-A. Lemburg
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 `PYTH

[Python-ideas] Re: Provide UTF-8 version of Python for Windows.

2021-01-26 Thread Inada Naoki
On Tue, Jan 26, 2021 at 4:36 PM Eryk Sun wrote: > > One concern is what to do for the special "ansi" and "oem" encodings. > If scripts rely on them for IPC, such as with subprocess.Popen(), then > it could be frustrating if they're just synonyms for UTF-8 (code page > 65001). I've tested that it's

[Python-ideas] Re: Provide UTF-8 version of Python for Windows.

2021-01-25 Thread Eryk Sun
On 1/26/21, Eryk Sun wrote: > > The process active code page for GetACP() and GetOEMCP() is changed to > UTF-8 (65001). The C runtime also overrides the user locale to UTF-8 > if GetACP() returns UTF-8, i.e. setlocale(LC_CTYPE, "") will return > "utf8" as the encoding. One concern is what to do f

[Python-ideas] Re: Provide UTF-8 version of Python for Windows.

2021-01-25 Thread Inada Naoki
On Tue, Jan 26, 2021 at 4:01 PM Eryk Sun wrote: > > > * Windows team needs to maintain more versions. > > I suppose the installer could install both sets of binaries, and copy > to "python[w][_d].exe" based on an installer option. But then the > UTF-8 selection statistics wouldn't be tracked, unle

[Python-ideas] Re: Provide UTF-8 version of Python for Windows.

2021-01-25 Thread Eryk Sun
On 1/25/21, Inada Naoki wrote: > > Microsoft provides UTF-8 code page for process. It can be enabled by > manifest file. > > How about providing Python binaris both of "UTF-8 version" and "ANSI > version"? I experimented with this manifest setting several months ago. To try it out, simply export

[Python-ideas] Re: Provide UTF-8 version of Python for Windows.

2021-01-25 Thread Random832
On Mon, Jan 25, 2021, at 22:49, William Pickard wrote: > Looks like that's only available for Microsoft Store apps only, so it > might not be viable for Python. I think the "Fusion manifest for an unpackaged Win32 app" part applies to non-store apps. [English version of the page: https://docs.

[Python-ideas] Re: Provide UTF-8 version of Python for Windows.

2021-01-25 Thread Guido van Rossum
Aren't there too many different Windows installers already? I worry that it's too hard to choose which one to use (I know I had to ask another expert :-). On Mon, Jan 25, 2021 at 7:05 PM Inada Naoki wrote: > Sorry for posting multiple threads so quickly. > > Microsoft provides UTF-8 code page fo

[Python-ideas] Re: Provide UTF-8 version of Python for Windows.

2021-01-25 Thread Inada Naoki
As my understanding, "Fusion manifest for an unpackaged Win32 app" (*) works for non Store Apps too. (*) https://docs.microsoft.com/ja-jp/windows/uwp/design/globalizing/use-utf8-code-page#examples -- Inada Naoki ___ Python-ideas mailing list -- python

[Python-ideas] Re: Provide UTF-8 version of Python for Windows.

2021-01-25 Thread William Pickard
Looks like that's only available for Microsoft Store apps only, so it might not be viable for Python. ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/