Escape carriage returns during export

Bug #307453 reported by Jeroen T. Vermeulen
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Henning Eggers

Bug Description

When a string contains a carriage return ("^M"), the gettext exporter should show that as \r.

Otherwise there will be problems when re-importing the exported file: the importer sees a CR and treats it as a newline. So it bails out with an error about the fact that there seems to be no closing quote on that line. And when the user checks the file on their own machine, msgfmt says nothing because it does not treat the CR as newline.

Escaping the things will not solve all problems we have with carriage returns, but it'll make it a lot easier to see what's going on.

Related problems are in bug 61112 (similar but for the UI), bug 88831 (importer choking over the incoming CR), and bug 61096 (allowing mixed line endings in a single file).

(I was pretty sure there was a bug about this already, but I can't seem to find it today).

Changed in rosetta:
importance: Undecided → High
status: New → Triaged
Changed in rosetta:
milestone: none → 2.2.1
Changed in rosetta:
assignee: nobody → henninge
Changed in rosetta:
status: Triaged → In Progress
Revision history for this message
Henning Eggers (henninge) wrote :

Fixed in RF 7653

Changed in rosetta:
status: In Progress → Fix Committed
Changed in rosetta:
status: Fix Committed → 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.