"String not terminated" when CR/LF newlines straddle quotes

Bug #246553 reported by Jeroen T. Vermeulen
4
Affects Status Importance Assigned to Milestone
Launchpad itself
New
Undecided
Unassigned

Bug Description

Users sometimes get "String not terminated" errors for files that "msgfmt -c" says are perfectly fine. That appears to happen when an MS-DOS-style carriage-return/line-feed line ending has been broken up in editing, with a closing quote in the middle:

    msgid "foo<CR>"<LF>

It seems that msgfmt reads that as:

    msgid "foo^M"

But Launchpad reads it as:

    msgid "
    "

The simplest fix would be to add a note to the error message that warns about this specific case.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

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