[issue20761] os.path.join doesn't strip LF or CR

2014-02-24 Thread Tiberiu Dragulinescu
New submission from Tiberiu Dragulinescu: >>>d="asdasd"+chr(10) >>>print os.path.normpath(os.path.join('a/b',d,'d')) a\b\asdasd \d LF or CR cannot be part of a URI (rfc1738) -- components: Windows messages: 212099 nosy: ExtraVeral prio

[issue20761] os.path.join doesn't strip LF or CR

2014-02-24 Thread Tiberiu Dragulinescu
Tiberiu Dragulinescu added the comment: The join function should know that it will compose a path with the provided string, so I think it should complain or ignore ilegal path/filename components, in regard to the host OS. But if it is not a valid point of view python-wise, one can check his