nayakgi / perl-compiler

Automatically exported from code.google.com/p/perl-compiler
Other
0 stars 0 forks source link

-C/PERL_UNICODE not honored (${^UNICODE} probably needs attn also) #231

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Howdy Reini,

per our discussion here is the google code issue.

> What steps will reproduce the problem?

 1. prove op/warn.t == All tests pass (after 777aad7 fixes the line numbers)
 2. prove op/wanr.bin == test “warn respects :utf8 layer” fails

> What is the expected output? 

test passes

> What do you see instead?

test fails

> Please use labels and text to provide additional information.

fix probably needs more extensive tests added for -C, $ENV{PERL_UNICODE}, and 
${^UNICODE}

CentOS release 6.4 32bit

perl v5.14.3

Original issue reported on code.google.com by cpanel...@gmail.com on 25 Nov 2013 at 6:17

GoogleCodeExporter commented 9 years ago
Fixed with 1.42_62
commit 79fa41c17fb86a46b3f1c541e7c1a7558e706edc
Author: Reini Urban <rurban@cpanel.net>
Date:   Wed Dec 4 16:24:59 2013 -0600

    C 1.42_62: Restore more missing globals if set in a BEGIN block or via cmdline

    Restore more missing globals: ${^UNICODE} ${^UTF8LOCALE} $; $\ $, $/ $" $|
    $^A $^L $: $^ $^ $^ $% $- $= if set in a BEGIN block or via cmdline (#256,#231)
    Restore even deprecated vars $] $# $* (#171)

    no regressions.
    not all vars have testcases, there might be a wrong mg_set

Original comment by reini.urban on 4 Dec 2013 at 10:26