Skip to content

Docs for chrono type S decimal point locale does not match code #4117

@tearfur

Description

@tearfur

The decimal point character for the chrono type 'S' seems to be locale-independent, contrary to what the docs says. Reproduced at https://godbolt.org/z/TKxcq5hf6.

From the docs:

The character for the decimal point is localized according to the locale. The modified command %OS produces the locale's alternative representation.

Relevant code (I think):

*out++ = '.';

*out++ = '.';

fmt::format_to(std::back_inserter(buf), FMT_STRING("{:.{}f}"),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions