Issue 11972: input does not strip a trailing newline correctly on Windows

Issue11972

Created on 2011-05-01 14:58 by Michal.Molhanec, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (3)
msg134911 - (view) Author: Michal Molhanec (Michal.Molhanec) Date: 2011-05-01 14:58
input() returns string including trailing '\r'. IMHO the problem is not directly in the input() function which just expects that the input string was read in text mode so all of the platform specific newlines were normalized into single '\n'.
msg134912 - (view) Author: Andreas Stührk (Trundle) * Date: 2011-05-01 15:00
See issue #11272.
msg134913 - (view) Author: Brian Curtin (brian.curtin) * (Python committer) Date: 2011-05-01 15:00
Duplicate of #11642, #11272, and #11278.

This is fixed. It'll be released in 3.2.1
History
Date User Action Args
2022-04-11 14:57:16adminsetgithub: 56181
2011-05-07 00:33:55terry.reedysetstatus: open -> closed
2011-05-01 15:00:46brian.curtinsetnosy: + brian.curtin
messages: + msg134913

resolution: duplicate
stage: resolved

2011-05-01 15:00:30Trundlesetnosy: + Trundle
messages: + msg134912
2011-05-01 14:58:30Michal.Molhaneccreate