summaryrefslogtreecommitdiffstats
path: root/README.source
blob: b4789ceb1c9bdcb7fd173c726c809d3dfaf5fa49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"Failed to set default locale"
==============================

This warning is thrown by bsdtar and bsdcpio when neither `LC_ALL` nor `LANG`
are set, because these utilities call `setlocale()` with `""` as the second
argument:

    #if HAVE_SETLOCALE
            if (setlocale(LC_ALL, "") == NULL)
                    lafe_warnc(0, "Failed to set default locale");
    #endif

This causes libarchive's `test_read_disk` and `test_write_disk_lookup` tests to
fail, so the `build` makefile runs oh-autotest with `LC_ALL=C`.