Skip to content

Parsing gpg output makes cargo fragile to the environment #3762

Closed
@lucab

Description

@lucab

In order to verify the gpg signature on repository, cargo is launching gpg and trying to parse the output for correct verification. This can break in many ways, the simplest one actually being language configuration by the environment.

lucab@galatea:$ echo $LANG
it_IT.utf8
lucab@galatea:
$ cargo init
error: signature verification failed for '/home/lucab/.cargo/sources.json.new'
lucab@galatea:~$ LANG=C cargo init
info: initialized .cargo in /home/lucab/.cargo

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