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

Bug#351786: libstdc++6: bad thousand separator with fr_FR.UTF-8



Package: libstdc++6
Version: 4.0.2-7
Severity: normal
Tags: l10n

Summary : outputs weird caracters instead of proper thousand
separator.

Consider the attached simple program.  It ouputs a wrong thousand
separator using fr_FR.UTF-8 (i haven't tested other locales). (French
thousand separator should be '.' (dot)) Moreover, the current thousand
separator is weird : it outputs a '\xc2'. '\xc2' looks like the
beginning of a multibyte UTF-8 char.

I'm using belocs-locales.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-powerpc
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to fr_FR.UTF-8)

Versions of packages libstdc++6 depends on:
ii  gcc-4.0-base                  4.0.2-7    The GNU Compiler Collection (base 
ii  libc6                         2.3.5-12.1 GNU C Library: Shared libraries an
ii  libgcc1                       1:4.0.2-7  GCC support library

libstdc++6 recommends no packages.

-- no debconf information
#include <iostream>
#include <locale>

int main()
{
	std::cout << "cout no locale : " << 1024 << '\n';
	std::cout.imbue(std::locale(""));
	std::cout << "cout with locale : " << 1024 << '\n';
}


Reply to: