Skip to content

locale::facet::_S_create_c_locale name not valid #1

@kkmzero

Description

@kkmzero

There might be a problem with locales on Solaris 11 operating system. After running a test program using logutil I encountered this error:

terminate called after throwing an instance of 'std::runtime_error'
  what():  locale::facet::_S_create_c_locale name not valid
Abort (core dumped)

There are two possible solutions. Either setting environment variables:

export LC_ALL=C; unset LANGUAGE

or changing this line of code in function file_open in file logutil.hpp:

filehandle.imbue(std::locale("C"));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions