From bca809b075d65cd2c89fd18384936f744470cf98 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 13 Oct 2014 11:29:30 -0400 Subject: README.source: New file --- diff --git a/README.source b/README.source new file mode 100644 index 0000000..b4789ce --- /dev/null +++ b/README.source @@ -0,0 +1,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`. -- cgit v0.9.1