Skip to content

uucore: change sig of detect_system_locale to remove unsafe env::set_var #12256

@oech3

Description

@oech3

fn detect_system_locale() -> Result<LanguageIdentifier, LocalizationError> {
let locale_str = std::env::var("LANG")

This requires many unsafes. Sub issue of #12238 .

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