Skip Menu |

This queue is for tickets about the YAML-Tiny CPAN distribution.

Report information
The Basics
Id: 95853
Status: resolved
Priority: 0/
Queue: YAML-Tiny

People
Owner: Nobody in particular
Requestors: lubos [...] kolouch.org
Cc:
AdminCc:

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



Subject: Warning when saving unicode characters
Date: Thu, 22 May 2014 08:33:22 +0200
To: bug-YAML-Tiny [...] rt.cpan.org
From: Lubos Kolouch <lubos [...] kolouch.org>
Hello, When you do Yaml::Tiny->write and the data you are saving contain non-ascii characters (such as "š"), YAML::Tiny gives warning "Wide character in print". It would be nice not to get this warning... Cheers, Luboš Kolouch
What version of YAML::Tiny are you using? And what version of Perl? I see no warnings from this: $ perl -MYAML::Tiny -wE 'my $doc = YAML::Tiny->new( { happy => "☺☺☺" } ); $doc->write("happy.txt")'
Subject: Re: [rt.cpan.org #95853] Warning when saving unicode characters
Date: Thu, 22 May 2014 18:16:39 +0200
To: David Golden via RT <bug-YAML-Tiny [...] rt.cpan.org>
From: Lubos Kolouch <lubos [...] kolouch.org>
Yes, that works. But try this: perl -MYAML::Tiny -wE 'use utf8; my $doc = YAML::Tiny->new( { happyč => "č" } ); $doc->write("happy.txt")' I get : Wide character in print at /home/lubos/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/YAML/Tiny.pm line 408. $YAML::Tiny::VERSION = '1.55'; Lubos On Thu, May 22, 2014, 11:41:39, David Golden via RT wrote: Show quoted text
><URL: https://rt.cpan.org/Ticket/Display.html?id=95853 > > >What version of YAML::Tiny are you using? And what version of Perl? > >I see no warnings from this: > > $ perl -MYAML::Tiny -wE 'my $doc = YAML::Tiny->new( { happy => "☺☺☺" } ); $doc->write("happy.txt")' > >
Subject: Re: [rt.cpan.org #95853] Warning when saving unicode characters
Date: Thu, 22 May 2014 09:58:33 -0700
To: Lubos Kolouch via RT <bug-YAML-Tiny [...] rt.cpan.org>
From: Karen Etheridge <ether [...] cpan.org>
On Thu, May 22, 2014 at 12:17:29PM -0400, Lubos Kolouch via RT wrote: Show quoted text
> But try this: > > perl -MYAML::Tiny -wE 'use utf8; my $doc = YAML::Tiny->new( { happyč => > "č" } ); $doc->write("happy.txt")' > > I get : > > Wide character in print at > /home/lubos/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/YAML/Tiny.pm > line 408. > > $YAML::Tiny::VERSION = '1.55';
This should be fixed in the latest version. Have you tried upgrading?
Subject: Re: [rt.cpan.org #95853] Warning when saving unicode characters
Date: Thu, 22 May 2014 19:08:59 +0200
To: Karen Etheridge via RT <bug-YAML-Tiny [...] rt.cpan.org>
From: Lubos Kolouch <lubos [...] kolouch.org>
On Thu, May 22, 2014, 12:58:45, Karen Etheridge via RT wrote: Show quoted text
><URL: https://rt.cpan.org/Ticket/Display.html?id=95853 > > >On Thu, May 22, 2014 at 12:17:29PM -0400, Lubos Kolouch via RT wrote:
>> But try this: >> >> perl -MYAML::Tiny -wE 'use utf8; my $doc = YAML::Tiny->new( { happyč => >> "č" } ); $doc->write("happy.txt")' >> >> I get : >> >> Wide character in print at >> /home/lubos/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/YAML/Tiny.pm >> line 408. >> >> $YAML::Tiny::VERSION = '1.55';
> >This should be fixed in the latest version. Have you tried upgrading?
You are right, works in 1.62, many thanks! Lubos
\o/