"String not terminated" when CR/LF newlines straddle quotes
Bug #246553 reported by
Jeroen T. Vermeulen
This bug report is a duplicate of:
Bug #88831: .po parser fails if an \r is not escaped inside a string.
Edit
Remove
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-
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.