Skip Menu |

This queue is for tickets about the Locale-PO CPAN distribution.

Report information
The Basics
Id: 119945
Status: new
Priority: 0/
Queue: Locale-PO

People
Owner: Nobody in particular
Requestors: GUIDO [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.27
Fixed in: (no value)



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