Path: csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python.': 0.02; 'memory.': 0.07; 'report.': 0.07; 'falls': 0.09; 'imply': 0.09; 'pages.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'bug': 0.12; 'jan': 0.12; 'thread': 0.14; 'windows': 0.15; 'fail,': 0.16; 'fails.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'subject:fails': 0.16; 'thoughts?': 0.16; 'sat,': 0.16; 'wrote:': 0.18; "python's": 0.19; 'version.': 0.19; 'work,': 0.20; 'command': 0.22; '>>>': 0.22; 'issue.': 0.22; 'preferred': 0.22; 'header:User-Agent:1': 0.23; 'developers': 0.25; 'possibly': 0.26; 'header:X-Complaints- To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'function': 0.29; 'fixed': 0.29; 'url:bugs': 0.29; 'patch': 0.29; "doesn't": 0.30; 'dec': 0.30; 'experiences': 0.30; '(which': 0.31; 'code': 0.31; "d'aprano": 0.31; 'steven': 0.31; 'open': 0.33; 'url:python': 0.33; 'running': 0.33; 'could': 0.34; 'subject: (': 0.35; 'something': 0.35; 'done.': 0.35; 'but': 0.35; 'there': 0.35; 'done,': 0.36; 'himself': 0.36; 'module.': 0.36; 'useful': 0.36; 'url:org': 0.36; 'should': 0.36; 'reports': 0.37; 'to:addr :python-list': 0.38; 'pm,': 0.38; 'rather': 0.38; 'little': 0.38; 'explain': 0.39; 'environment.': 0.39; 'reported': 0.39; 'to:addr:python.org': 0.39; 'enough': 0.39; 'received:org': 0.40; 'how': 0.40; 'read': 0.60; 'received:173': 0.61; 'back': 0.62; 'more': 0.64; 'different': 0.65; 'situation': 0.65; 'worth': 0.66; 'believe': 0.68; 'hour': 0.70; 'behavior': 0.77; 'received:fios.verizon.net': 0.84; "shouldn't,": 0.84; 'victor': 0.84; 'realistic': 0.93; 'ultimate': 0.93; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: CP65001 fails (was re: ...) Date: Sun, 15 Dec 2013 00:07:09 -0500 References: <201312090824.25211.gheskett@wdtv.com> <52A78F6F.3060507@stoneleaf.us> <5b62c6f8-fb92-48ef-a59a-6025b9b39994@googlegroups.com> <52ad1675$0$29992$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-173-75-254-207.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: <52ad1675$0$29992$c3e8da3$5496439d@news.astraweb.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 49 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1387084047 news.xs4all.nl 2870 [2001:888:2000:d::a6]:41961 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:61935 On 12/14/2013 9:39 PM, Steven D'Aprano wrote: > On Sat, 14 Dec 2013 13:43:41 -0500, Terry Reedy wrote: > >> This was reported by Victor Stinner as part of >> http://bugs.python.org/issue19914 >> to explain how cp65001 causes behavior like this with Python's >> interactive help() function (which more for paging on Windows). >> >> >>> help(str) >> Not enough memory. > > > Terry, I see you have closed the bug report. I think you were a little > hasty. I might have been premature, but I was not hasty. I read the SO reports and though about it for an hour or so while looking at other issues. I did not see any use to leaving it open as I did not see any realistic propect of a useful and acceptible patch to Python. The OP himself said that i/o did not work with 65001 and that not using it fixed his issue. > The ultimate cause of the bug may be the failure of Window's > "more" command when the code-page is set to CP-65001, but that doesn't > necessarily imply that Python shouldn't, or can't, do something about it. I believe running Python on Windows with cp=65001 falls in the category of "Don't do that". This is based on my experiences and the reported experience of other developers who have tried and failed to make it work, reinforced by the SO thread and a couple of other web pages. > The interactive help system already supports different pagers, depending > on the environment. I think that it could fall back on a more primitive > pager if the preferred one fails. Do you know if 'more' actually signals failure? Do you know if there are any other situations in which a pager fails? > The relevant code is the pager() and > getpager() functions in the pydoc module. The patch won't be trivial, but > I think it can be done, and I think it should be done. Although possibly > for Python 3.5 rather than a bug-fix version. Your thoughts? My thought is that if the only situation in which a pager fails is one that one should not use, because other things will also fail, then a patch would not be worth the bother. -- Terry Jan Reedy