\r line endings poorly handled

Bug #387225 reported by Display Name
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Low
Unassigned
loggerhead
Fix Released
Low
Unassigned

Bug Description

It seems that Mac-style line breaks are not supported yet. When I tried to view a file with that kind of line break, the content after the first \r was not displayed.

Tags: oem-services
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

I can confirm this. It's a little surprising!

Surely noone actually uses \r-delimited files any more though? IIRC they were going out of fashion when I learnt to program on the mac 15 years ago!

Changed in loggerhead:
importance: Undecided → Medium
status: New → Confirmed
summary: - File content not entirely displayed
+ \r line endings poorly handled
tags: added: oem-services
Revision history for this message
Max Kanat-Alexander (mkanat) wrote :

Yeah, \r-delimited files are not common enough for us to justify handling them. The code that we're using to do line-breaking is mostly in bzrlib. If that code gets updated, perhaps we will start working better in this area, although I'm not sure that will ever happen.

Changed in loggerhead:
status: Confirmed → Won't Fix
Revision history for this message
Robert Collins (lifeless) wrote :

I've reopened this to triaged because:
 - someone may contribute a fix
 - it is a genuine defect

But yes, Mac OS X using LF not CR per http://en.wikipedia.org/wiki/Newline#Representations

Changed in loggerhead:
status: Won't Fix → Triaged
Changed in loggerhead:
importance: Medium → Low
Martin Pool (mbp)
Changed in bzr:
status: New → Confirmed
importance: Undecided → Low
Changed in bzr:
status: Confirmed → Fix Released
Changed in loggerhead:
status: Triaged → 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.