Bug#429660: g++-4.2: program using locales segfaults when compile with locales
Package: g++-4.2
Version: 4.2-20070609-1
Severity: normal
The sample program below segfaults.
#include <stdexcept>
#include <iostream>
#include <locale>
int main (int argc, char **argv) {
try {
std::locale::locale("ja_JP.UTF-8");
} catch (const std::runtime_error& err) {
std::cerr << err.what() << '\n';
}
}
Of course I have generated the ja_JP.UTF-8 locale.
Since my mother language is Japanese, I
use my computer with the locale every day.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.20-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages g++-4.2 depends on:
ii gcc-4.2 4.2-20070609-1 The GNU C compiler
ii gcc-4.2-base 4.2-20070609-1 The GNU Compiler Collection (base
ii libc6 2.5-11 GNU C Library: Shared libraries
ii libstdc++6-4.2-dev 4.2-20070609-1 The GNU Standard C++ Library v3 (d
g++-4.2 recommends no packages.
-- no debconf information
Reply to: