[issue8620] wrong truncation of last line in cmd.Cmd

2010-08-02 Thread Mattelaer

Mattelaer olivier.mattel...@uclouvain.be added the comment:

Thanks a lot for the fix.
On 02-août-10, at 01:58, R. David Murray wrote:


 R. David Murray rdmur...@bitdance.com added the comment:

 Thanks, Éric. Fixed.

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue8620
 ___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8620
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8620] wrong truncation of last line in cmd.Cmd

2010-08-01 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Universal newline mode helps when reading from stdin, but what I had in mind 
was actually Enter in cmd.exe putting CRLF. Re-reading the original report, I 
see this is not a concern, since the bug is about cmd used with a file only, 
not interactively, so my remark was moot.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8620
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8620] wrong truncation of last line in cmd.Cmd

2010-08-01 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

If “l” sorts after “a”, you’ve misplaced Catherine in ACKS. Funny how often 
this happens :)

(Cheers for the Teach Me session by the way Catherine!)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8620
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8620] wrong truncation of last line in cmd.Cmd

2010-08-01 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Thanks, Éric. Fixed.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8620
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8620] wrong truncation of last line in cmd.Cmd

2010-07-31 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8620
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8620] wrong truncation of last line in cmd.Cmd

2010-07-31 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Here is a unit test that demonstrates the problem (against py3k trunk).  I'm 
not convinced that fixing this would be backward incompatible.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8620
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8620] wrong truncation of last line in cmd.Cmd

2010-07-31 Thread Catherine Devlin

Catherine Devlin fredv8vi...@liquidid.net added the comment:

Patch created live during PyOhio 2010 Teach Me Python Bugfixing session!

--
nosy: +catherine
Added file: http://bugs.python.org/file18294/cmd-noeol-test.fix.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8620
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8620] wrong truncation of last line in cmd.Cmd

2010-07-31 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Test runs okay on posix (linux2). Does the fix need to work with '\r\n' too?

Aside: Your patch has trailing spaces, you can spot them with good editor 
settings.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8620
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8620] wrong truncation of last line in cmd.Cmd

2010-07-31 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Sorry, RDM is the actual culprit ;)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8620
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8620] wrong truncation of last line in cmd.Cmd

2010-07-31 Thread Catherine Devlin

Catherine Devlin fredv8vi...@liquidid.net added the comment:

same patch, stripped of trailing spaces

--
Added file: http://bugs.python.org/file18297/cmd-noeol-test.fix.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8620
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8620] wrong truncation of last line in cmd.Cmd

2010-07-31 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Éric: thanks for spotting the whitespace before I got smacked by the commit 
hook.  As for \r\n, our thought was that would be a feature (universal newline 
support), but upon reflection the current fix could actually break working code 
if by some weird chance someone is feeding \r terminated files to Cmd, while 
using \r\n should not break anything, since a \r\n terminated file would 
currently not work (since the \r would be left on the lines).  So I've changed 
the fix to strip '\r\n' in the commit (py3k r83380, 2.7 r83381, 2.5 r83382, 3.1 
r83383).

--
assignee:  - r.david.murray
resolution:  - fixed
stage: needs patch - commit review
status: open - closed
versions: +Python 2.6, Python 2.7, Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8620
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8620] wrong truncation of last line in cmd.Cmd

2010-07-30 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Here is a unit test that demonstrates the problem (against py3k trunk).  I'm 
not convinced that fixing this would be backward incompatible.  

(NB: please no one patch this bug, I'm expecting the patch to get created 
tomorrow during PyOhio.)

--
keywords: +patch
nosy: +r.david.murray
stage:  - needs patch
Added file: http://bugs.python.org/file18280/cmd-noeol-test.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8620
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8620] wrong truncation of last line in cmd.Cmd

2010-07-30 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


Removed file: http://bugs.python.org/file18280/cmd-noeol-test.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8620
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8620] wrong truncation of last line in cmd.Cmd

2010-07-30 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


Added file: http://bugs.python.org/file18281/cmd-noeol-test.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8620
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8620] wrong truncation of last line in cmd.Cmd

2010-05-07 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Setting version to 3.2, since this change would not be backward compatible and 
2.7 is already in beta.

--
components: +Library (Lib) -None
nosy: +merwok
title: wrong truncation of line in Cmd.cmd - wrong truncation of last line in 
cmd.Cmd
versions: +Python 3.2 -Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8620
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com