[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#379329: locales: Incorrect decimal point for german locale (LC_NUMERIC)



Package: locales
Version: 2.3.6-15
Severity: important
Tags: l10n

I am developing an app in perl which should handle numeric values
depending on the locale. I read the perllocale value, and ran the
sample programm from there:
#!/usr/bin/perl

use POSIX qw(locale_h);

# Get a reference to a hash of locale-dependent info
$locale_values = localeconv();

# Output sorted list of the values
for (sort keys %$locale_values) {
    printf "%-20s = %s\n", $_, $locale_values->{$_}
}

I tried it in de_DE@euro, as well as in de_DE, I set LANG, LC_ALL, 
LC_NUMERIC, but I always get the following output for
decimal_point = .

The decimal point in the german locale is ",", as is correctly set in 
mon_decimal_point    = ,

Entering numerical values in my locale is quite important, especially
since the key in the numeric keypad is mapped to ",". 

I don't know where the error comes from, but as the perllocale man
page clearly states, that brokeness (if present) comes from the
locales package, I report it here. If it is indeed a perl bug, please
reassign.


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14.6-grsec-cz03
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)

Versions of packages locales depends on:
ii  debconf [debconf-2.0]         1.5.2      Debian configuration management sy
ii  libc6 [glibc-2.3.6-2]         2.3.6-15   GNU C Library: Shared libraries

locales recommends no packages.

-- debconf information:
* locales/default_environment_locale: de_DE@euro
* locales/locales_to_be_generated: de_DE@euro ISO-8859-15, de_DE ISO-8859-1, de_DE.UTF-8@euro UTF-8, de_DE.UTF-8 UTF-8, en_GB ISO-8859-1, en_GB.ISO-8859-15 ISO-8859-15, en_GB.UTF-8 UTF-8, en_IE@euro ISO-8859-15, en_IE ISO-8859-1, en_IE.UTF-8@euro UTF-8, en_IE.UTF-8 UTF-8, fi_FI@euro ISO-8859-15, pl_PL ISO-8859-2
-- 
      Dr. Helge Kreutzmann                     debian@helgefjell.de
           Dipl.-Phys.                   http://www.helgefjell.de/debian.php
        64bit GNU powered                     gpg signed mail preferred
           Help keep free software "libre": http://www.ffii.de/

Attachment: signature.asc
Description: Digital signature


Reply to: