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')

Some grepping revealed that this comes from
src/gnu/dist/gcc4/libstdc++-v3/config/locale/generic/ :

  locale::facet::_S_create_c_locale(__c_locale& __cloc, const char* __s, 
    // Currently, the generic model only supports the "C" locale.
    // See
    __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?

Home | Main Index | Thread Index | Old Index