tech-toolchain archive

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

c++ vs locales



net/cclive doesn't work in locales except 'C'.
It fails with

error: locale::facet::_S_create_c_locale name not valid

(just set LC_CTYPE=de_DE.UTF-8 and run 'cclive
http://www.youtube.com/some/valid/url')

Some grepping revealed that this comes from
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"));
  }

Does anyone have an idea how this can be made to work on NetBSD?
 Thomas


Home | Main Index | Thread Index | Old Index