[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gawk] Option --gen-pot loses a letter when splitting long strings
From: |
Bert Bos |
Subject: |
[bug-gawk] Option --gen-pot loses a letter when splitting long strings |
Date: |
Sat, 4 Oct 2014 03:02:16 +0200 |
When using “gawk —gen-pot” to generate a message catalog, strings that are
longer than 70 characters are broken over two lines in the output. However, the
70th character itself disappears.
E.g., with this Awk program in file tmp.awk:
{print _"This string is so long that gawk --gen-pot will break it and lose a
letter at the break.”}
running “gawk —gen-pot” produces:
#: tmp.awk:1
msgid "This string is so long that gawk --gen-pot will break it and lose a "
"etter at the break."
msgstr ""
Note the missing “l” from “letter”. This occurs with at least:
- gawk 4.0.1 under Debian “wheezy” for amd64
- gawk 4.1.1 under Debian “jessie” for amd64
- gawk 4.1.1 from Macports under Mac OS 10.9 ("Mavericks”)
The result is the same after setting LC_ALL=C.
Bert
--
Bert Bos ( W 3 C ) http://www.w3.org/
http://www.w3.org/people/bos W3C/ERCIM
address@hidden 2004 Rt des Lucioles / BP 93
+33 (0)4 92 38 76 92 06902 Sophia Antipolis Cedex, France
signature.asc
Description: Message signed with OpenPGP using GPGMail
- [bug-gawk] Option --gen-pot loses a letter when splitting long strings,
Bert Bos <=