[issue13643] 'ascii' is a bad filesystem default encoding

2011-12-21 Thread Martin Pool
Martin Pool added the comment: On 21 December 2011 12:41, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > >> The standard encoding is UTF-8. > > How so? I don't know of any Linux or Unix spec which says so. If you get > the Linux heads to standardize this then I'll certainly be v

[issue13643] 'ascii' is a bad filesystem default encoding

2011-12-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > It is a de facto, not de jure standard: UTF-8 is how things are > typically stored. Other software (eg gnome file handling utilities) > makes this assumption. See eg > . So should we specifically detect Lin

[issue9201] IDLE: raises Exception TclError in a special case

2011-12-21 Thread Roger Serwy
Roger Serwy added the comment: This issue was fixed in 500e48708470, as part of issue3851. -- nosy: +serwy ___ Python tracker ___ ___

[issue13553] Tkinter doesn't set proper application name

2011-12-21 Thread Roger Serwy
Roger Serwy added the comment: Does IDLE appear as "Tk" in Gnome3? -- nosy: +serwy ___ Python tracker ___ ___ Python-bugs-list mailin

[issue13643] 'ascii' is a bad filesystem default encoding

2011-12-21 Thread STINNER Victor
STINNER Victor added the comment: This discussion is becoming very long, I didn't remember the original purpose. You want to use UTF-8 instead of ASCII, so what? What do you want to do with your nicely well decoded filenames? You cannot print it to your terminal nor pass it to a subprocess, b

[issue13585] Add contextlib.CleanupManager

2011-12-21 Thread Nick Coghlan
Nick Coghlan added the comment: My earlier descriptions here aren't really adequate - as soon as I started putting contextlib2 together, this CleanupManager idea quickly morphed into ContextStack [1], which is a far more powerful tool for manipulating context managers in a way that doesn't ne

[issue13643] 'ascii' is a bad filesystem default encoding

2011-12-21 Thread STINNER Victor
STINNER Victor added the comment: >> Nope. The locale encoding is chosen using LC_ALL, LC_CTYPE or LANG >> variable: use the first non-empty variable. LC_MESSAGES doesn't affect >> the encoding. Example: > > That's good to know, thanks. Only leaves the case where setlocale > is called again wi

[issue694339] IDLE: Dedenting with Shift+Tab

2011-12-21 Thread Roger Serwy
Roger Serwy added the comment: I applied the patch and encountered a problem. MultiCall.py is replacing "" with "". When this happens, the logic for rebinding "<>" fails. event_info('<>') returns ('', '', '') event_info('<>') returns ('', '') This is with 3.3a0 on Ubuntu 11.04.

[issue11829] inspect.getattr_static code execution with meta-metaclasses

2011-12-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8f33758df19a by Michael Foord in branch '3.2': Metaclasses with metaclasses with a __dict__ descriptor can no longer trigger code execution with inspect.getattr_static. http://hg.python.org/cpython/rev/8f33758df19a -- nosy: +python-dev res

[issue13643] 'ascii' is a bad filesystem default encoding

2011-12-21 Thread Martin Pool
Martin Pool added the comment: On 22 December 2011 11:21, STINNER Victor wrote: > This discussion is becoming very long, I didn't remember the original > purpose. The proposal is that in some cases where Python currently assumes filenames are ascii on Linux, it ought to instead assume they are

[issue13643] 'ascii' is a bad filesystem default encoding

2011-12-21 Thread STINNER Victor
STINNER Victor added the comment: On 22/12/2011 02:16, Martin Pool wrote: > The proposal is that in some cases where Python currently assumes > filenames are ascii on Linux, it ought to instead assume they are > utf-8. Oh, I expected a use case describing the problem, not the proposed solution

[issue13585] Add contextlib.ContextStack

2011-12-21 Thread Nick Coghlan
Nick Coghlan added the comment: Updated issue title to reflect what I'll eventually be proposing (once the ContextStack API has had a chance to mature on PyPI as part of contextlib2) -- title: Add contextlib.CleanupManager -> Add contextlib.ContextStack ___

[issue12930] reindent.py inserts spaces in multiline literals

2011-12-21 Thread Roger Serwy
Roger Serwy added the comment: I applied the patch and it failed against the attached "tab_test.py" file. For reference, every '\t' in the file is followed by "Tab". -- nosy: +serwy Added file: http://bugs.python.org/file24074/tab_test.py ___ Python

[issue13585] Add contextlib.ContextStack

2011-12-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: "I put my version up as a cookbook recipe: http://code.activestate.com/recipes/577981-cleanupmanager-for-with-statements/"; One other idea is to model what I've done with the itertools docs by adding a recipe section. I used it as an incubator for possibl

[issue13643] 'ascii' is a bad filesystem default encoding

2011-12-21 Thread Martin Pool
Martin Pool added the comment: On 22 December 2011 12:32, STINNER Victor wrote: > > STINNER Victor added the comment: > > On 22/12/2011 02:16, Martin Pool wrote: >> The proposal is that in some cases where Python currently assumes >> filenames are ascii on Linux, it ought to instead assume the

[issue13643] 'ascii' is a bad filesystem default encoding

2011-12-21 Thread STINNER Victor
STINNER Victor added the comment: > The problem as I see it is this: > > On Linux, filenames are generally (but not always) in UTF-8; people > fairly commonly end up with no locale configured, which causes Python > to decode filenames as ascii. It is easy for this to end up with them > hitting

[issue13643] 'ascii' is a bad filesystem default encoding

2011-12-21 Thread Martin Pool
Martin Pool added the comment: On 22 December 2011 13:15, STINNER Victor wrote: > You cannot pass directly "h\xe9.txt", but if you know the "correct" file > system encoding, you can encode it explicitly using str.encode("utf-8"). My recollection was that there were some cases where you couldn

[issue13643] 'ascii' is a bad filesystem default encoding

2011-12-21 Thread R. David Murray
R. David Murray added the comment: > _My_ locale is set properly. The problem is all the other > people in the world who do not have their locale set to match > their files on disk; telling them each to fix it is tedious. > But perhaps the OS is the best place to address that, when the > incorr

[issue13553] Tkinter doesn't set proper application name

2011-12-21 Thread th9
th9 added the comment: No, it apears as "Toplevel". I'm not sure if the program.desktop file has something to do with that, but I didn't manage to get the application name from a desktop file to get used for Tkinter program. And I don't have any Tkinter or Tk app which would do what I'm tryi

[issue13585] Add contextlib.ContextStack

2011-12-21 Thread Nick Coghlan
Nick Coghlan added the comment: Yeah, adding a "Recipes" section for contextlib2 is definitely on my to-do list (along with adding more examples in general). -- ___ Python tracker

[issue9922] subprocess.getstatusoutput can fail with utf8 UnicodeDecodeError

2011-12-21 Thread Ross Lagerwall
Ross Lagerwall added the comment: getstatusoutput() is broken given that it doesn't work on windows yet it should. I'd also recommend leaving the behavior as is and deprecating the function (and getoutput() while we're at it). A related bug (#10197) also recommends deprecating getstatusoutput

[issue8093] IDLE processes don't close

2011-12-21 Thread Ned Deily
Changes by Ned Deily : -- resolution: -> duplicate stage: needs patch -> committed/rejected status: open -> closed superseder: -> "Restart Shell" command leaves pythonw.exe processes running ___ Python tracker ___

[issue12922] StringIO and seek()

2011-12-21 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue9925] Idle doesn't launch

2011-12-21 Thread Roger Serwy
Roger Serwy added the comment: This bug looks almost identical to issue4625 which was fixed. The only difference is the French localization aspect. -- nosy: +serwy ___ Python tracker __

[issue11006] warnings with subprocess and pipe2

2011-12-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset dc913f73a7fb by Ross Lagerwall in branch '3.2': Issue #11006: Don't issue low level warning in subprocess when pipe2() fails. http://hg.python.org/cpython/rev/dc913f73a7fb New changeset b1b35583967a by Ross Lagerwall in branch 'default': Merge with

[issue13532] In IDLE, sys.stdout.write and sys.stderr can write any pickleable object

2011-12-21 Thread Roger Serwy
Roger Serwy added the comment: This bug is related to #1757057. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue13636] Python SSL Stack doesn't have a Secure Default set of ciphers

2011-12-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > By default the Python SSL/TLS Stack (client/server) expose > > unsecure protocols (SSLv2) and unsecure ciphers (EXPORT 40bit DES). > > If there is a problem, it should not be fixed in Python, but in the > underlying library (OpenSSL) or in applications. Pyt

[issue11006] warnings with subprocess and pipe2

2011-12-21 Thread Ross Lagerwall
Ross Lagerwall added the comment: Removed the warnings. Thanks. -- assignee: -> rosslagerwall nosy: +rosslagerwall resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.3 ___ Python tracker

[issue12922] StringIO and seek()

2011-12-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: I would rather document it in TextIOBase: http://docs.python.org/dev/library/io.html#io.TextIOBase With text I/O streams, tell() returns an arbitrary "position cookie", meaning you can't meaningfully do arithmetic on it: this is why cur-relative seeking and e

<    1   2