On Tue, Mar 15, 2016 at 7:45 PM, boB Stepp <robertvst...@gmail.com> wrote: > On Tue, Mar 15, 2016 at 7:35 PM, boB Stepp <robertvst...@gmail.com> wrote: >> Is the following result in PowerShell related to what Eryk has been >> discussing? >> >> Windows PowerShell >> Copyright (C) 2009 Microsoft Corporation. All rights reserved. >> >> PS C:\Windows\system32> py >> Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:54:25) [MSC v.1900 >> 64 bit (AMD64)] on w >> in32 >> Type "help", "copyright", "credits" or "license" for more information. >> Active code page: 65001 >> ► help(print) >> Not enough memory. > > Apparently this is another consequence of setting the code page to 65001. See > > https://bugs.python.org/issue19914
I added an analysis of this bug to issue 19914. It's not directly related to a bug in the console, but occurs if the console is set to certain codepages, including 65001. It's a bug in a library that's used by Windows command-line utilities such as more.com and find.exe. The bug doesn't exist in Windows 10. > I am now wondering which is better: Adopt the solution suggested > earlier by Eryk, applying that Python monkey patch and using utf-16 or > doing something more drastic, like installing Cygwin. What are the > cons in doing the latter? Will I achieve Unicode harmony under > Windows by using Cygwin? If you don't need to support Windows, then you could develop in a Linux VM. Unicode works very well in a UTF-8 terminal, which Python's POSIX-oriented I/O system is designed for. _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor