1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
d:\>perl -MCPAN -e shell
cpan shell -- CPAN exploration and modules installation (v1.9454)
Enter 'h' for help.
cpan> install Number::Format
Fetching with LWP:
http://cpan.strawberryperl.com/authors/01mailrc.txt.gz
Fetching with LWP:
http://cpan.strawberryperl.com/modules/02packages.details.txt.gz
Fetching with LWP:
http://cpan.strawberryperl.com/modules/03modlist.data.gz
Database was generated on Thu, 15 Dec 2011 19:30:31 GMT
Updating database file ...
Gathering information from index files ...
Obtaining current state of database ...
Populating database tables ...
Done!
Running install for module 'Number::Format'
Running make for W/WR/WRW/Number-Format-1.73.tar.gz
Fetching with LWP:
http://cpan.strawberryperl.com/authors/id/W/WR/WRW/Number-Format-1.73.tar.gz
Fetching with LWP:
http://cpan.strawberryperl.com/authors/id/W/WR/WRW/CHECKSUMS
Checksum for C:\strawberry\cpan\sources\authors\id\W\WR\WRW\Number-Format-1.73.tar.gz ok
CPAN.pm: Going to build W/WR/WRW/Number-Format-1.73.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for Number::Format
Writing MYMETA.yml and MYMETA.json
cp Format.pm blib\lib\Number\Format.pm
WRW/Number-Format-1.73.tar.gz
C:\strawberry\c\bin\dmake.EXE -- OK
Running make test
C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t/*.t
t/format_bytes.t ..... ok
t/format_negative.t .. ok
t/format_number.t .... ok
t/format_picture.t ... ok
t/format_price.t ..... ok
t/locale.t ........... ok
t/object.t ........... ok
t/round.t ............ ok
t/unformat_number.t .. ok
All tests successful.
Files=9, Tests=149, 5 wallclock secs ( 0.47 usr + 0.36 sys = 0.83 CPU)
Result: PASS
WRW/Number-Format-1.73.tar.gz
C:\strawberry\c\bin\dmake.EXE test -- OK
Running make install
Prepending C:\strawberry\cpan\build\Number-Format-1.73-bD9F_W/blib/arch C:\strawberry\cpan\build\Number-Format-1.73-bD9F_W/b
lib/lib to PERL5LIB for 'install'
Installing C:\strawberry\perl\site\lib\Number\Format.pm
Appending installation info to C:\strawberry\perl\lib/perllocal.pod
WRW/Number-Format-1.73.tar.gz
C:\strawberry\c\bin\dmake.EXE install UNINST=1 -- OK
2012-03-11T09:31:27 KuerbisMit WinXP habe ich mit dem locale.t Test Probleme.
2012-03-11T11:35:32 KuerbisJa, es funktioniert trotzdem.
Aber es ist lästig - z.B. das Installieren von Hand.
QuoteIch glaube XP kommt mit locale-strings wie de_DE nicht zurecht.
2012-03-11T09:31:27 KuerbisThx!
Mit WinXP habe ich mit dem locale.t Test Probleme.
QuoteInvalid sep_by_space value at t/locale.t line 77
1 2 3 4 5
use POSIX; setlocale(&LC_ALL, "C") or die "Unable to set en_US locale"; my $lconv = POSIX::localeconv(); use Data::Dumper; print Dumper $lconv;
1
2
3
4
5
6
7
8
9
10
11
$VAR1 = {
'n_sep_by_space' => -1,
'n_cs_precedes' => -1,
'p_sign_posn' => -1,
'p_cs_precedes' => -1,
'int_frac_digits' => -1,
'decimal_point' => '.',
'frac_digits' => -1,
'n_sign_posn' => -1,
'p_sep_by_space' => -1
};