• R. David Murray's avatar
    #8620: Cmd no longer truncates last character if stdin ends without newline · 7905d61b
    R. David Murray yazdı
    Cmd used to blindly chop off the last character of every input line.  If
    the input reached EOF and there was no final new line, it would truncate
    the last character of the last command.  This fix instead strips trailing
    \r\n from the input lines.  While this is a small behavior change, it
    should not break any working code, since feeding a '\r\n' terminated
    file to Cmd would previously leave the \r's on the lines, resulting
    in failed command execution.
    
    I wrote the unit test in preparation for a PyOhio TeachMe session
    run by Catherine Devlin, and we can thank Catherine and the PyOhio
    session attendees for the fix.  I've added Catherine to the Acks file
    for organizing and leading the TeachMe session, out of which we will
    hopefully get some new contributors.
    7905d61b
Adı
Son kayıt (commit)
Son güncelleme
..
RPM Loading commit data...
TextMate/Python-Dev.tmbundle Loading commit data...
Vim Loading commit data...
ACKS Loading commit data...
AIX-NOTES Loading commit data...
HISTORY Loading commit data...
NEWS Loading commit data...
NEWS.help Loading commit data...
PURIFY.README Loading commit data...
Porting Loading commit data...
README Loading commit data...
README.OpenBSD Loading commit data...
README.coverity Loading commit data...
README.klocwork Loading commit data...
README.valgrind Loading commit data...
RFD Loading commit data...
SpecialBuilds.txt Loading commit data...
build.sh Loading commit data...
cheatsheet Loading commit data...
developers.txt Loading commit data...
gdbinit Loading commit data...
indent.pro Loading commit data...
maintainers.rst Loading commit data...
pymemcompat.h Loading commit data...
python-config.in Loading commit data...
python-mode.el Loading commit data...
python-wing.wpr Loading commit data...
python.man Loading commit data...
python.pc.in Loading commit data...
setuid-prog.c Loading commit data...
valgrind-python.supp Loading commit data...
vgrindefs Loading commit data...