BzrDirFormat.__str__ assumes last character of format_string is \n
Bug #139688 reported by
Jelmer Vernooij
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Ian Clatworthy |
Bug Description
affects /products/bzr
BzrDirFormat.
get_format_string() is a newline character and will delete it. It should
either only strip newline characters or should assert that that last
character is a newline character.hhh
To post a comment you must log in.
Note that using a format string ending with \n is a really good idea for native formats, both so the file can be catted, and to detect line-ending corruption.