BzrDirFormat.__str__ assumes last character of format_string is \n

Bug #139688 reported by Jelmer Vernooij
2
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Medium
Ian Clatworthy

Bug Description

  affects /products/bzr

BzrDirFormat.__str__() assumes that the last charcter of
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

Revision history for this message
Martin Pool (mbp) wrote :

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.

Changed in bzr:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Fixed by Ian in 2830.1.1

Changed in bzr:
assignee: nobody → ian-clatworthy
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.