Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 37606

Summary: it_IT locale does not have correct values for decimal places
Product: Gentoo Linux Reporter: Marko Djukic <djukic>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED UPSTREAM    
Severity: major    
Priority: High    
Version: 1.4   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Marko Djukic 2004-01-08 06:50:46 UTC
The following settings should not be (which were the old settings in the time of the Lira):
"int_frac_digits" => 0
"frac_digits" => 0

but SHOULD be:
"int_frac_digits" => 2
"frac_digits" => 2
Comment 1 Luca Barbato gentoo-dev 2004-01-08 19:53:30 UTC
did you try it_IT@euro?
Comment 2 Marko Djukic 2004-01-08 20:34:02 UTC
yes, same result:

/* Locale test. */
#include <locale.h>

int main()
{
    char *return_val;
    struct lconv *lconv_ptr;
    return_val = (char *) setlocale(LC_ALL, "it_IT@euro");
    lconv_ptr = (struct lconv *) localeconv();
    printf("International Fractional Digits = %d\n",
           lconv_ptr->int_frac_digits);
}
Comment 3 Marko Djukic 2004-01-08 20:35:17 UTC
sorry, left out the output:

International Fractional Digits = 0
Comment 4 Marko Djukic 2004-09-26 10:17:58 UTC
Closing this, since I took it up with the glibc guys and they fixed it in their cvs.