summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-10-13 11:29:30 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-10-13 11:29:30 (EDT)
commitbca809b075d65cd2c89fd18384936f744470cf98 (patch)
tree92dfe2a6a03a15f40dd94d06b21d15e2b4928704
parent122807ca6668e780f4289985012e6d6fdac5c5c0 (diff)
README.source: New file
-rw-r--r--README.source14
1 files changed, 14 insertions, 0 deletions
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`.