Skip Menu |

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

Report information
The Basics
Id: 96016
Status: resolved
Worked: 30 min
Priority: 0/
Queue: Locale-PO

People
Owner: Nobody in particular
Requestors: Jeff.Fearn [...] gmail.com
Cc:
AdminCc:

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



Subject: "\n" in a string not escaped properly
Given this code: ##### use Locale::PO; my $str =<<'EOT'; foo \n pants go EOT my $po = new Locale::PO(); my $test = $po->msgid($str); print("test: $test", "\n"); # looks right .. print($po->dump()); # but it's not wrapped up correctly :( ##### It prints out: test: "foo \n pants go " msgid "" "\"foo \n" " pants go \"" I was expecting dump to output : msgid "" "foo \\n pants\n" "\n" "go\n" "\n" I have a patch for this and will submit a pull request on github. Cheers, Jeff.
On Wed May 28 08:09:11 2014, jfearn wrote: Show quoted text
> I have a patch for this and will submit a pull request on github.
Pull submitted: https://github.com/cosimo/perl5-locale-po/pull/2
0.24 is on its way to CPAN!