Subject: | Backslash encoded tabs are not dequoted correctly |
If a tab is encoded as "\t" in a source file, it passes through undecoded by the dequote() method. A "\n" is handled correctly:
$ cat textdomain.pot
msgid "Column 1\tColumn 2\tColumn 3\nnext line"
msgstr ""
$ cat tabs.pl
use Locale::PO;
my $entries = Locale::PO->load_file_asarray('textdomain.pot');
my $qmsgid = $entries->[0]->msgid;
my $msgid = $entries->[0]->dequote($qmsgid);
print "qmsgid: $qmsgid\n";
print "msgid: $msgid\n";
$ perl tabs.pl
qmsgid: "Column 1\tColumn 2\tColumn 3\nnext line"
msgid: Column 1\tColumn 2\tColumn 3
next line