laanwj
commented at 12:56 pm on October 9, 2019:
member
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.
Much of our code assumes 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`.
facb9a1315
laanwj added the label
Utils/log/libs
on Oct 9, 2019
carnhofdaki
commented at 1:02 pm on October 9, 2019:
contributor
Tested ACK
laanwj added the label
Linux/Unix
on Oct 9, 2019
MarcoFalke
commented at 1:17 pm on October 9, 2019:
member
Is there a way to test this or observe a difference?
laanwj
commented at 1:21 pm on October 9, 2019:
member
I think this triggers if you unset all locale environment settings, or set them to invalid values.
Then try to create a unicode-named file (e.g. what the fsbridge tests do).
carnhofdaki
commented at 1:55 pm on October 9, 2019:
contributor
Is there a way to test this or observe a difference?
@MarcoFalke Sure. At least on ARM.
carnhofdaki
commented at 2:07 pm on October 9, 2019:
contributor
… until the line in tests/fs_tests.cpp is changed according to #14948 (comment)
laanwj
commented at 2:12 pm on October 9, 2019:
member
Yes, processor architecture shouldn’t make a difference here. Though OS and C library differences might.
MarcoFalke
commented at 7:20 pm on October 9, 2019:
member
0(before) $ LC_ALL=foobar ./src/test/test_bitcoin -t fs_tests
1Running 1 test case...
2unknown location(0): fatal error: in "fs_tests/fsbridge_fstream": boost::system::system_error: boost::filesystem::path codecvt to string: error
3test/fs_tests.cpp(13): last checkpoint: "fsbridge_fstream" test entry
4*** 1 failure is detected in the test module "Bitcoin Core Test Suite"
56(after) $ LC_ALL=foobar ./src/test/test_bitcoin -t fs_tests
7Running 1 test case...
8*** No errors detected
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2024-12-03 15:12 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me