Ticket #881: locale_bug.report

File locale_bug.report, 3.6 KB (added by cono, 5 years ago)
Line 
1Summary: Due to locale setting HEAD of revision was 0.
2Reported by: q@cono.org.ua
3---
4Parrot r40294.
5
6My locale settings:
7
8LANG=en_US.UTF-8
9LC_CTYPE="ru_RU.UTF-8"
10LC_NUMERIC="ru_RU.UTF-8"
11LC_TIME="ru_RU.UTF-8"
12LC_COLLATE="ru_RU.UTF-8"
13LC_MONETARY="ru_RU.UTF-8"
14LC_MESSAGES="ru_RU.UTF-8"
15LC_PAPER="ru_RU.UTF-8"
16LC_NAME="ru_RU.UTF-8"
17LC_ADDRESS="ru_RU.UTF-8"
18LC_TELEPHONE="ru_RU.UTF-8"
19LC_MEASUREMENT="ru_RU.UTF-8"
20LC_IDENTIFICATION="ru_RU.UTF-8"
21LC_ALL=ru_RU.UTF-8
22
23svn info produced messages in russian.
24That's why parrot_config revision == 0
25I made this correction:
26
27Index: lib/Parrot/Revision.pm
28===================================================================
29--- lib/Parrot/Revision.pm      (revision 40294)
30+++ lib/Parrot/Revision.pm      (working copy)
31@@ -86,6 +86,7 @@
32     # are difficult to distinguih in a simplified parsing
33     my $nul = File::Spec->devnull;
34     local $ENV{LANG} = 'C';
35+    local $ENV{LC_ALL} = 'C';
36     if ( my @svn_info = qx/svn info 2>$nul/ and $? == 0 ) {
37         if ( my ($line) = grep /^Revision:/, @svn_info ) {
38             ($revision) = $line =~ /(\d+)/;
39
40
41---
42osname= linux
43osvers= 2.6.24-23-server
44arch=   i486-linux-gnu-thread-multi
45cc=     cc
46---
47Flags:
48    category=library
49    severity=low
50    ack=no
51---
52Summary of my parrot 1.4.0 (r40294) configuration:
53  configdate='Tue Jul 28 10:19:14 2009 GMT'
54  Platform:
55    osname=linux, archname=i486-linux-gnu-thread-multi
56    jitcapable=1, jitarchname=i386-linux,
57    jitosname=LINUX, jitcpuarch=i386
58    execcapable=1
59    perl=/usr/bin/perl
60  Compiler:
61    cc='cc', ccflags='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN  -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHASATTRIBUTE_CONST  -DHASATTRIBUTE_DEPRECATED  -DHASATTRIBUTE_MALLOC  -DHASATTRIBUTE_NONNULL  -DHASATTRIBUTE_NORETURN  -DHASATTRIBUTE_PURE  -DHASATTRIBUTE_UNUSED  -DHASATTRIBUTE_WARN_UNUSED_RESULT  -falign-functions=16 -fvisibility=hidden -funit-at-a-time -maccumulate-outgoing-args -W -Wall -Waggregate-return -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment -Wdisabled-optimization -Wendif-labels -Wextra -Wformat -Wformat-extra-args -Wformat-nonliteral -Wformat-security -Wformat-y2k -Wimplicit -Wimport -Winit-self -Winline -Winvalid-pch -Wlogical-op -Wmissing-braces -Wmissing-field-initializers -Wno-missing-format-attribute -Wmissing-include-dirs -Wpacked -Wparentheses -Wpointer-arith -Wreturn-type -Wsequence-point -Wno-shadow -Wsign-compare -Wstrict-aliasing -Wstrict-aliasing=2 -Wswitch -Wswitch-default -Wtrigraphs -Wundef -Wunknown-pragmas -Wno-unused -Wvariadic-macros -Wwrite-strings -Wbad-function-cast -Wc++-compat -Wdeclaration-after-statement -Werror=declaration-after-statement -Wimplicit-function-declaration -Wimplicit-int -Wmain -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wnonnull -Wold-style-definition -Wstrict-prototypes -DHAS_GETTEXT',
62  Linker and Libraries:
63    ld='cc', ldflags=' -L/usr/local/lib',
64    cc_ldflags='',
65    libs='-ldl -lm -lpthread -lcrypt -lgmp -lreadline '
66  Dynamic Linking:
67    share_ext='.so', ld_share_flags='-shared -O2 -g -L/usr/local/lib -fPIC',
68    load_ext='.so', ld_load_flags='-shared -O2 -g -L/usr/local/lib -fPIC'
69  Types:
70    iv=long, intvalsize=4, intsize=4, opcode_t=long, opcode_t_size=4,
71    ptrsize=4, ptr_alignment=1 byteorder=1234,
72    nv=double, numvalsize=8, doublesize=8, longdoublesize=12
73
74---
75Environment:
76    HOME =/home/cono
77    LANG =en_US.UTF-8
78    LANGUAGE  (unset)
79    LC_ALL =ru_RU.UTF-8
80    LC_MESSAGES =ru_utf
81    LD_LIBRARY_PATH  (unset)
82    LOGDIR  (unset)
83    PATH =/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/home/cono/bin:.
84    PERL5LIB =/home/cono/amm/trunk/lib
85    SHELL =/usr/bin/zsh