HomePhabricator

[backport#17085] init: Change fallback locale to C.UTF-8

Description

[backport#17085] init: Change fallback locale to C.UTF-8

Summary:
facb9a1315f97489a20eb0e969fdb14b5128ed2f init: Change fallback locale to C.UTF-8 (Wladimir J. van der Laan)

Pull request description:

Much of our code assumes file system UTF-8 support, and this is a more realistic guess for modern systems anyway than the default character set (which would be ASCII only). So change the assumed fallback locale (if no locale is defined by the user or OS) to `C.UTF-8`.

related: https://github.com/bitcoin/bitcoin/issues/14948#issuecomment-488385462

Backport of Core PR17085

Test Plan:

ninja all check check-functional

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D8747

Details

Provenance
Wladimir J. van der Laan <laanwj@protonmail.com>Authored on Oct 10 2019, 11:09
majcostaCommitted on Dec 24 2020, 15:59
majcostaPushed on Dec 24 2020, 15:59
Reviewer
Restricted Project
Differential Revision
D8747: [backport#17085] init: Change fallback locale to C.UTF-8
Parents
rABC10d6c566679e: [Automated] Update timing.json
Branches
Unknown
Tags
Unknown