Skip Menu |

This queue is for tickets about the Test-More-UTF8 CPAN distribution.

Report information
The Basics
Id: 73994
Status: rejected
Priority: 0/
Queue: Test-More-UTF8

People
Owner: MONS [...] cpan.org
Requestors: doherty [...] cs.dal.ca
Cc:
AdminCc:

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



Subject: Use the open pragma to set :encoding(UTF-8) on the standard filehandles
Date: Sat, 14 Jan 2012 15:02:54 -0500
To: bug-Test-More-UTF8 [...] rt.cpan.org
From: Mike Doherty <doherty [...] cs.dal.ca>
Sometimes, a test will die. Test::More::UTF8 could use the open pragma to ensure there are no "Wide character in die" warnings. Simply load open qw(:std :encoding(UTF-8)) in the target package. You might also consider using utf8::all. Thanks, -Mike
On Sat Jan 14 15:03:03 2012, doherty@cs.dal.ca wrote: Show quoted text
> Sometimes, a test will die. Test::More::UTF8 could use the open pragma > to ensure there are no "Wide character in die" warnings. Simply load > open qw(:std :encoding(UTF-8)) in the target package. You might also > consider using utf8::all. > > Thanks, > -Mike
I think there is a big set of options, that could be enabled. You may look at my uni::perl, which is another way to turn all utf8. (for ex utf8::all doesn't turn on feature unicode_strings) I think I'll add the following: use Test::More::UTF8 # leave current behaviour. use Test::More::UTF8 -strict; # use encoding() + warnings FATAL use Test::More::UTF8 -all; # -strict + all utf decoding (open, argv, etc) What do you think?
On Wed Sep 12 07:40:00 2012, MONS wrote: Show quoted text
> (for ex utf8::all doesn't turn on feature unicode_strings)
Yet. :D
open is for open. this was only for Test::Builder's descriptors