You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by "Andrew Black (JIRA)" <ji...@apache.org> on 2006/07/07 23:05:29 UTC

[jira] Created: (STDCXX-255) Locales utility produces bad output

Locales utility produces bad output
-----------------------------------

         Key: STDCXX-255
         URL: http://issues.apache.org/jira/browse/STDCXX-255
     Project: C++ Standard Library
        Type: Bug

  Components: Utilities  
 Environment: uname -a
Linux quandry 2.6.14.5 #1 PREEMPT Thu Dec 29 16:01:39 MST 2005 i686 unknown unknown GNU/Linux

gcc -v
Reading specs from /usr/lib/gcc-lib/i486-slackware-linux/3.2.3/specs
Configured with: ../gcc-3.2.3/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 3.2.3
    Reporter: Andrew Black


As part of the make runall process for the bin directory, a (generated) script called sanity_test.sh is executed prior to building the locales.  This script tests various aspects of the locale and localedef utilities. When running this script manually with the -d (debug) parameter and the buildspace bin directory in the path, I recive the following output.  It appears to me that the locale utility may have built incorrectly.

Checking location of locale utilities... correct.
Checking "locale --help" output...Error 399: invalid size at (nil): 4294967295, expected 352
 incorrect.
ERROR: "locale --help" gives wrong output (NAME).

 incorrect.
ERROR: "locale --help" gives wrong output (SYNOPSIS).

 incorrect.
ERROR: "locale --help" gives wrong output (DESCRIPTION).

 correct.
Checking "locale -a" output...Error 399: invalid size at (nil): 4294967295, expected 352
check completed.
Checking "locale -m" output...Error 399: invalid size at (nil): 4294967295, expected 352
 correct.
Checking "locale -k LC_ALL" output...Error 399: invalid size at (nil): 4294967295, expected 352
 incorrect.
ERROR: "locale -k" gives wrong output (upper).

 incorrect.
ERROR: "locale -k" gives wrong output (lower).

 incorrect.
ERROR: "locale -k" gives wrong output (space).

 incorrect.
ERROR: "locale -k" gives wrong output (print).

 incorrect.
ERROR: "locale -k" gives wrong output (cntrl).

 incorrect.
ERROR: "locale -k" gives wrong output (alpha).

 incorrect.
ERROR: "locale -k" gives wrong output (digit).

 incorrect.
ERROR: "locale -k" gives wrong output (punct).

 incorrect.
ERROR: "locale -k" gives wrong output (graph).

 incorrect.
ERROR: "locale -k" gives wrong output (xdigit).

 incorrect.
ERROR: "locale -k" gives wrong output (toupper).

 incorrect.
ERROR: "locale -k" gives wrong output (tolower).

 incorrect.
ERROR: "locale -k" gives wrong output (abday).

 incorrect.
ERROR: "locale -k" gives wrong output (day).

 incorrect.
ERROR: "locale -k" gives wrong output (abmon).

 incorrect.
ERROR: "locale -k" gives wrong output (mon).

 incorrect.
ERROR: "locale -k" gives wrong output (am_pm).

 incorrect.
ERROR: "locale -k" gives wrong output (d_t_fmt).

 incorrect.
ERROR: "locale -k" gives wrong output (d_fmt).

 incorrect.
ERROR: "locale -k" gives wrong output (t_fmt).

 incorrect.
ERROR: "locale -k" gives wrong output (t_fmt_ampm).

 incorrect.
ERROR: "locale -k" gives wrong output (int_curr_symbol).

 incorrect.
ERROR: "locale -k" gives wrong output (currency_symbol).

 incorrect.
ERROR: "locale -k" gives wrong output (mon_decimal_point).

 incorrect.
ERROR: "locale -k" gives wrong output (mon_thousands_sep).

 incorrect.
ERROR: "locale -k" gives wrong output (mon_grouping).

 incorrect.
ERROR: "locale -k" gives wrong output (positive_sign).

 incorrect.
ERROR: "locale -k" gives wrong output (negative_sign).

 incorrect.
ERROR: "locale -k" gives wrong output (int_frac_digits).

 incorrect.
ERROR: "locale -k" gives wrong output (frac_digits).

 incorrect.
ERROR: "locale -k" gives wrong output (p_cs_precedes).

 incorrect.
ERROR: "locale -k" gives wrong output (p_sep_by_space).

 incorrect.
ERROR: "locale -k" gives wrong output (n_cs_precedes).

 incorrect.
ERROR: "locale -k" gives wrong output (n_sep_by_space).

 incorrect.
ERROR: "locale -k" gives wrong output (p_sign_posn).

 incorrect.
ERROR: "locale -k" gives wrong output (n_sign_posn).

 incorrect.
ERROR: "locale -k" gives wrong output (decimal_point).

 incorrect.
ERROR: "locale -k" gives wrong output (thousands_sep).

 incorrect.
ERROR: "locale -k" gives wrong output (grouping).

 (seems) correct.
Checking "localedef --help" output... correct.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (STDCXX-255) Locales utility produces bad output

Posted by "Andrew Black (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/STDCXX-255?page=all ]

Andrew Black updated STDCXX-255:
--------------------------------

    Attachment: en_US-buildlog.out

Attached is the output of running a (semi-random) locale shell script (en_US.ISO-8859-1), using the -d and -O/dev/tty flags.

Note in particular that the localedef utility segvs during the stage 2 compilation, and that the locale utility produces the same 399 error during the stage 2 and stage 3 process (likely as a result of the stage 2 failure of the localedef utility)

I believe these failures to be related to the initial observations, so I attached the output to this issue, rather than creating a new issue.

> Locales utility produces bad output
> -----------------------------------
>
>          Key: STDCXX-255
>          URL: http://issues.apache.org/jira/browse/STDCXX-255
>      Project: C++ Standard Library
>         Type: Bug

>   Components: Utilities
>  Environment: uname -a
> Linux quandry 2.6.14.5 #1 PREEMPT Thu Dec 29 16:01:39 MST 2005 i686 unknown unknown GNU/Linux
> gcc -v
> Reading specs from /usr/lib/gcc-lib/i486-slackware-linux/3.2.3/specs
> Configured with: ../gcc-3.2.3/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux --host=i486-slackware-linux
> Thread model: posix
> gcc version 3.2.3
>     Reporter: Andrew Black
>  Attachments: en_US-buildlog.out
>
> As part of the make runall process for the bin directory, a (generated) script called sanity_test.sh is executed prior to building the locales.  This script tests various aspects of the locale and localedef utilities. When running this script manually with the -d (debug) parameter and the buildspace bin directory in the path, I recive the following output.  It appears to me that the locale utility may have built incorrectly.
> Checking location of locale utilities... correct.
> Checking "locale --help" output...Error 399: invalid size at (nil): 4294967295, expected 352
>  incorrect.
> ERROR: "locale --help" gives wrong output (NAME).
>  incorrect.
> ERROR: "locale --help" gives wrong output (SYNOPSIS).
>  incorrect.
> ERROR: "locale --help" gives wrong output (DESCRIPTION).
>  correct.
> Checking "locale -a" output...Error 399: invalid size at (nil): 4294967295, expected 352
> check completed.
> Checking "locale -m" output...Error 399: invalid size at (nil): 4294967295, expected 352
>  correct.
> Checking "locale -k LC_ALL" output...Error 399: invalid size at (nil): 4294967295, expected 352
>  incorrect.
> ERROR: "locale -k" gives wrong output (upper).
>  incorrect.
> ERROR: "locale -k" gives wrong output (lower).
>  incorrect.
> ERROR: "locale -k" gives wrong output (space).
>  incorrect.
> ERROR: "locale -k" gives wrong output (print).
>  incorrect.
> ERROR: "locale -k" gives wrong output (cntrl).
>  incorrect.
> ERROR: "locale -k" gives wrong output (alpha).
>  incorrect.
> ERROR: "locale -k" gives wrong output (digit).
>  incorrect.
> ERROR: "locale -k" gives wrong output (punct).
>  incorrect.
> ERROR: "locale -k" gives wrong output (graph).
>  incorrect.
> ERROR: "locale -k" gives wrong output (xdigit).
>  incorrect.
> ERROR: "locale -k" gives wrong output (toupper).
>  incorrect.
> ERROR: "locale -k" gives wrong output (tolower).
>  incorrect.
> ERROR: "locale -k" gives wrong output (abday).
>  incorrect.
> ERROR: "locale -k" gives wrong output (day).
>  incorrect.
> ERROR: "locale -k" gives wrong output (abmon).
>  incorrect.
> ERROR: "locale -k" gives wrong output (mon).
>  incorrect.
> ERROR: "locale -k" gives wrong output (am_pm).
>  incorrect.
> ERROR: "locale -k" gives wrong output (d_t_fmt).
>  incorrect.
> ERROR: "locale -k" gives wrong output (d_fmt).
>  incorrect.
> ERROR: "locale -k" gives wrong output (t_fmt).
>  incorrect.
> ERROR: "locale -k" gives wrong output (t_fmt_ampm).
>  incorrect.
> ERROR: "locale -k" gives wrong output (int_curr_symbol).
>  incorrect.
> ERROR: "locale -k" gives wrong output (currency_symbol).
>  incorrect.
> ERROR: "locale -k" gives wrong output (mon_decimal_point).
>  incorrect.
> ERROR: "locale -k" gives wrong output (mon_thousands_sep).
>  incorrect.
> ERROR: "locale -k" gives wrong output (mon_grouping).
>  incorrect.
> ERROR: "locale -k" gives wrong output (positive_sign).
>  incorrect.
> ERROR: "locale -k" gives wrong output (negative_sign).
>  incorrect.
> ERROR: "locale -k" gives wrong output (int_frac_digits).
>  incorrect.
> ERROR: "locale -k" gives wrong output (frac_digits).
>  incorrect.
> ERROR: "locale -k" gives wrong output (p_cs_precedes).
>  incorrect.
> ERROR: "locale -k" gives wrong output (p_sep_by_space).
>  incorrect.
> ERROR: "locale -k" gives wrong output (n_cs_precedes).
>  incorrect.
> ERROR: "locale -k" gives wrong output (n_sep_by_space).
>  incorrect.
> ERROR: "locale -k" gives wrong output (p_sign_posn).
>  incorrect.
> ERROR: "locale -k" gives wrong output (n_sign_posn).
>  incorrect.
> ERROR: "locale -k" gives wrong output (decimal_point).
>  incorrect.
> ERROR: "locale -k" gives wrong output (thousands_sep).
>  incorrect.
> ERROR: "locale -k" gives wrong output (grouping).
>  (seems) correct.
> Checking "localedef --help" output... correct.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (STDCXX-255) Locales utility produces bad output

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/STDCXX-255?page=all ]
     
Martin Sebor resolved STDCXX-255:
---------------------------------

    Fix Version: 4.2
     Resolution: Fixed
      Assign To: Martin Sebor

Should be fixed by the referenced change.

> Locales utility produces bad output
> -----------------------------------
>
>          Key: STDCXX-255
>          URL: http://issues.apache.org/jira/browse/STDCXX-255
>      Project: C++ Standard Library
>         Type: Bug

>   Components: Utilities
>  Environment: uname -a
> Linux quandry 2.6.14.5 #1 PREEMPT Thu Dec 29 16:01:39 MST 2005 i686 unknown unknown GNU/Linux
> gcc -v
> Reading specs from /usr/lib/gcc-lib/i486-slackware-linux/3.2.3/specs
> Configured with: ../gcc-3.2.3/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux --host=i486-slackware-linux
> Thread model: posix
> gcc version 3.2.3
>     Reporter: Andrew Black
>     Assignee: Martin Sebor
>      Fix For: 4.2
>  Attachments: en_US-buildlog.out
>
> As part of the make runall process for the bin directory, a (generated) script called sanity_test.sh is executed prior to building the locales.  This script tests various aspects of the locale and localedef utilities. When running this script manually with the -d (debug) parameter and the buildspace bin directory in the path, I recive the following output.  It appears to me that the locale utility may have built incorrectly.
> Checking location of locale utilities... correct.
> Checking "locale --help" output...Error 399: invalid size at (nil): 4294967295, expected 352
>  incorrect.
> ERROR: "locale --help" gives wrong output (NAME).
>  incorrect.
> ERROR: "locale --help" gives wrong output (SYNOPSIS).
>  incorrect.
> ERROR: "locale --help" gives wrong output (DESCRIPTION).
>  correct.
> Checking "locale -a" output...Error 399: invalid size at (nil): 4294967295, expected 352
> check completed.
> Checking "locale -m" output...Error 399: invalid size at (nil): 4294967295, expected 352
>  correct.
> Checking "locale -k LC_ALL" output...Error 399: invalid size at (nil): 4294967295, expected 352
>  incorrect.
> ERROR: "locale -k" gives wrong output (upper).
>  incorrect.
> ERROR: "locale -k" gives wrong output (lower).
>  incorrect.
> ERROR: "locale -k" gives wrong output (space).
>  incorrect.
> ERROR: "locale -k" gives wrong output (print).
>  incorrect.
> ERROR: "locale -k" gives wrong output (cntrl).
>  incorrect.
> ERROR: "locale -k" gives wrong output (alpha).
>  incorrect.
> ERROR: "locale -k" gives wrong output (digit).
>  incorrect.
> ERROR: "locale -k" gives wrong output (punct).
>  incorrect.
> ERROR: "locale -k" gives wrong output (graph).
>  incorrect.
> ERROR: "locale -k" gives wrong output (xdigit).
>  incorrect.
> ERROR: "locale -k" gives wrong output (toupper).
>  incorrect.
> ERROR: "locale -k" gives wrong output (tolower).
>  incorrect.
> ERROR: "locale -k" gives wrong output (abday).
>  incorrect.
> ERROR: "locale -k" gives wrong output (day).
>  incorrect.
> ERROR: "locale -k" gives wrong output (abmon).
>  incorrect.
> ERROR: "locale -k" gives wrong output (mon).
>  incorrect.
> ERROR: "locale -k" gives wrong output (am_pm).
>  incorrect.
> ERROR: "locale -k" gives wrong output (d_t_fmt).
>  incorrect.
> ERROR: "locale -k" gives wrong output (d_fmt).
>  incorrect.
> ERROR: "locale -k" gives wrong output (t_fmt).
>  incorrect.
> ERROR: "locale -k" gives wrong output (t_fmt_ampm).
>  incorrect.
> ERROR: "locale -k" gives wrong output (int_curr_symbol).
>  incorrect.
> ERROR: "locale -k" gives wrong output (currency_symbol).
>  incorrect.
> ERROR: "locale -k" gives wrong output (mon_decimal_point).
>  incorrect.
> ERROR: "locale -k" gives wrong output (mon_thousands_sep).
>  incorrect.
> ERROR: "locale -k" gives wrong output (mon_grouping).
>  incorrect.
> ERROR: "locale -k" gives wrong output (positive_sign).
>  incorrect.
> ERROR: "locale -k" gives wrong output (negative_sign).
>  incorrect.
> ERROR: "locale -k" gives wrong output (int_frac_digits).
>  incorrect.
> ERROR: "locale -k" gives wrong output (frac_digits).
>  incorrect.
> ERROR: "locale -k" gives wrong output (p_cs_precedes).
>  incorrect.
> ERROR: "locale -k" gives wrong output (p_sep_by_space).
>  incorrect.
> ERROR: "locale -k" gives wrong output (n_cs_precedes).
>  incorrect.
> ERROR: "locale -k" gives wrong output (n_sep_by_space).
>  incorrect.
> ERROR: "locale -k" gives wrong output (p_sign_posn).
>  incorrect.
> ERROR: "locale -k" gives wrong output (n_sign_posn).
>  incorrect.
> ERROR: "locale -k" gives wrong output (decimal_point).
>  incorrect.
> ERROR: "locale -k" gives wrong output (thousands_sep).
>  incorrect.
> ERROR: "locale -k" gives wrong output (grouping).
>  (seems) correct.
> Checking "localedef --help" output... correct.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira