Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^4: Solved: Re: Test::Exception error on Strawberry Perl 5.14.3 ('Bareword "xception" ...') [ Bug in Perl ]

by Anonymous Monk
on Jul 30, 2015 at 19:48 UTC ( [id://1136913]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Solved: Re: Test::Exception error on Strawberry Perl 5.14.3 ('Bareword "xception" ...') [ Bug in Perl ]
in thread Test::Exception error on Strawberry Perl 5.14.3 ('Bareword "xception" ...')

I would like to have zero test failures, however, so I am thinking I will change the use open() call to a use if ... statement so it doesn't load under the broken perl/OS combo.

Naturally you're free to do what you think is best

but

why do you even care that STDIN/STDERR/STDOUT are in utf8?

most windows machines don't show unicode by default unless you do chcp

test suite shouldn't much care if STD* are utf8, if there is an encoding problem in a failing test, byte information is what is important , not correct drawing/rendering in the local shell

but if you care just binmode $_, q{:utf8} for *STDIN, *STDOUT, *STDERR;

  • Comment on Re^4: Solved: Re: Test::Exception error on Strawberry Perl 5.14.3 ('Bareword "xception" ...') [ Bug in Perl ]
  • Download Code

Replies are listed 'Best First'.
Re^5: Solved: Re: Test::Exception error on Strawberry Perl 5.14.3 ('Bareword "xception" ...') [ Bug in Perl ]
by 1nickt (Canon) on Jul 31, 2015 at 00:54 UTC

    if there is an encoding problem in a failing test, byte information is what is important , not correct drawing/rendering in the local shell

    Quite so. I just didn't like the warning about printing a wide character.

    Thanks for your response.

    The way forward always starts with a minimal test.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1136913]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2024-04-16 04:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found