Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 15:48 UTC ( #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 (Abbot) on Jul 30, 2015 at 20: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
Node Status?
node history
Node Type: note [id://1136913]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2019-07-17 21:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?