Skip to content

libtime locale values #17374

Description

@saosebastiao

libtime currently uses what appears to be en_US.UTF8 locale definitions hardcoded into the strftime/strptime functions.

https://github.com/rust-lang/rust/blob/master/src/libtime/lib.rs#L512-L548

These values should be derived from system-level locale definitions, such that they can be used in different locales correctly. However, I'm not sure how this would work for different operating systems/architectures. Is there a cross-platform standard practice that should guide the design of these parsing/formatting functions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions