diff options
author | David Mitchell <davem@iabyn.com> | 2014-04-14 15:31:06 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2014-04-14 15:37:17 +0100 |
commit | 250680e380c520a4ae1c4b2a55b0065a535e5964 (patch) | |
tree | ceb28bb240f91d43b55e77719955aed3c587fe79 | |
parent | ff4377fe256e32a3bc10175c01dd6c68c9ce7ddb (diff) | |
download | perl-250680e380c520a4ae1c4b2a55b0065a535e5964.tar.gz |
run/locale.t: reindent block
Re-indent a block of code after the previous commit added an extra scope.
Whitespace-only change
-rw-r--r-- | t/run/locale.t | 63 |
1 files changed, 32 insertions, 31 deletions
diff --git a/t/run/locale.t b/t/run/locale.t index 82872148e9..de64c77005 100644 --- a/t/run/locale.t +++ b/t/run/locale.t @@ -209,44 +209,45 @@ EOF open my $saved_stderr, ">&STDERR" or die "Can't dup STDERR: $!"; close STDERR; - for ($different) { - local $ENV{LC_ALL} = "invalid"; - local $ENV{LC_NUMERIC} = "invalid"; - local $ENV{LANG} = $_; + for ($different) { + local $ENV{LC_ALL} = "invalid"; + local $ENV{LC_NUMERIC} = "invalid"; + local $ENV{LANG} = $_; - # Can't turn off the warnings, so send them to /dev/null - fresh_perl_is(<<'EOF', "$difference", { stderr => "devnull" }, - use locale; - use POSIX qw(locale_h); - setlocale(LC_NUMERIC, ""); - my $in = 4.2; - printf("%g", $in); + # Can't turn off the warnings, so send them to /dev/null + fresh_perl_is(<<'EOF', "$difference", { stderr => "devnull" }, + use locale; + use POSIX qw(locale_h); + setlocale(LC_NUMERIC, ""); + my $in = 4.2; + printf("%g", $in); EOF - "LANG is used if LC_ALL, LC_NUMERIC are invalid"); - } - - SKIP: { - if ($^O eq 'MSWin32') { - skip("Win32 uses system default locale in preference to \"C\"", 1); + "LANG is used if LC_ALL, LC_NUMERIC are invalid"); } - else { - for ($different) { - local $ENV{LC_ALL} = "invalid"; - local $ENV{LC_NUMERIC} = "invalid"; - local $ENV{LANG} = "invalid"; - # Can't turn off the warnings, so send them to /dev/null - fresh_perl_is(<<'EOF', 4.2, { stderr => "devnull" }, - use locale; - use POSIX qw(locale_h); - setlocale(LC_NUMERIC, ""); - my $in = 4.2; - printf("%g", $in); + SKIP: { + if ($^O eq 'MSWin32') { + skip("Win32 uses system default locale in preference to \"C\"", + 1); + } + else { + for ($different) { + local $ENV{LC_ALL} = "invalid"; + local $ENV{LC_NUMERIC} = "invalid"; + local $ENV{LANG} = "invalid"; + + # Can't turn off the warnings, so send them to /dev/null + fresh_perl_is(<<'EOF', 4.2, { stderr => "devnull" }, + use locale; + use POSIX qw(locale_h); + setlocale(LC_NUMERIC, ""); + my $in = 4.2; + printf("%g", $in); EOF - 'C locale is used if LC_ALL, LC_NUMERIC, LANG are invalid'); + 'C locale is used if LC_ALL, LC_NUMERIC, LANG are invalid'); + } } } - } open STDERR, ">&", $saved_stderr or die "Can't dup \$saved_stderr: $!"; } |