mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 19:03:38 +08:00
fish_tests: Actually set locale
Otherwise this fails if the $PWD has non-ASCII characters. Fixes #7962.
This commit is contained in:
parent
7735d13d79
commit
f768389cf7
|
@ -6504,6 +6504,8 @@ void termsize_tester_t::test() {
|
||||||
/// Main test.
|
/// Main test.
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
UNUSED(argc);
|
UNUSED(argc);
|
||||||
|
setlocale(LC_ALL, "");
|
||||||
|
|
||||||
// Look for the file tests/test.fish. We expect to run in a directory containing that file.
|
// Look for the file tests/test.fish. We expect to run in a directory containing that file.
|
||||||
// If we don't find it, walk up the directory hierarchy until we do, or error.
|
// If we don't find it, walk up the directory hierarchy until we do, or error.
|
||||||
while (access("./tests/test.fish", F_OK) != 0) {
|
while (access("./tests/test.fish", F_OK) != 0) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user