NetBSD Problem Report #48291

From wiz@danbala.ifoer.tuwien.ac.at  Tue Oct  8 13:05:47 2013
Return-Path: <wiz@danbala.ifoer.tuwien.ac.at>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 00C3B710E2
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  8 Oct 2013 13:05:46 +0000 (UTC)
Message-Id: <20131008130543.27661390333@danbala.ifoer.tuwien.ac.at>
Date: Tue,  8 Oct 2013 15:05:43 +0200 (CEST)
From: Thomas Klausner <wiz@NetBSD.org>
Reply-To: Thomas Klausner <wiz@NetBSD.org>
To: gnats-bugs@gnats.NetBSD.org
Subject: locale::facet::_S_create_c_locale name not valid
X-Send-Pr-Version: 3.95

>Number:         48291
>Category:       lib
>Synopsis:       locale::facet::_S_create_c_locale name not valid
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lib-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 08 13:10:00 +0000 2013
>Closed-Date:    Sat Aug 12 01:56:33 +0000 2017
>Last-Modified:  Sat Aug 12 01:56:33 +0000 2017
>Originator:     Thomas Klausner
>Release:        NetBSD 6.99.23
>Organization:
>Environment:
Architecture: x86_64
Machine: amd64
>Description:
There seems to be some trouble with C++ and locales.
>How-To-Repeat:
# cd /usr/pkgsrc/net/cclive
# make install
# export LC_CTYPE=de_DE.UTF-8
# cclive
error: locale::facet::_S_create_c_locale name not valid

I've tried around a bit, nothing of the following worked:
en_US.ASCII
en_US
en

Only "C" seems to work, or unsetting the variable.
I haven't seen this issue with other programs, so it might be cclive
specific.
>Fix:
none provided.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: lib-bug-people->pkg-manager
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Thu, 21 Nov 2013 07:59:49 +0000
Responsible-Changed-Why:
I think this comes from boost.


Responsible-Changed-From-To: pkg-manager->lib-bug-people
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Thu, 21 Nov 2013 13:54:51 +0000
Responsible-Changed-Why:
I changed my mind, it's src/gnu/dist/gcc4/libstdc++-v3/config/locale/generic/c_locale.cc
  void
  locale::facet::_S_create_c_locale(__c_locale& __cloc, const char* __s, 
                                    __c_locale)
  {
    // Currently, the generic model only supports the "C" locale.
    // See http://gcc.gnu.org/ml/libstdc++/2003-02/msg00345.html
    __cloc = NULL;
    if (strcmp(__s, "C"))
      __throw_runtime_error(__N("locale::facet::_S_create_c_locale "
                            "name not valid"));
  }


State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Sat, 12 Aug 2017 01:56:33 +0000
State-Changed-Why:
Works for me now on -current.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.