mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00: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
1 changed files with 2 additions and 0 deletions
|
@ -6504,6 +6504,8 @@ void termsize_tester_t::test() {
|
|||
/// Main test.
|
||||
int main(int argc, char **argv) {
|
||||
UNUSED(argc);
|
||||
setlocale(LC_ALL, "");
|
||||
|
||||
// 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.
|
||||
while (access("./tests/test.fish", F_OK) != 0) {
|
||||
|
|
Loading…
Reference in a new issue