New commits:
commit 68b473756ee10d16b87f79d562d9a95e7114f2d3
Author: Justin Boffemmyer <flux AT sourcemage.org>
Commit: Justin Boffemmyer <flux AT sourcemage.org>
force "C" collating
Different locale settings can interfere with, for example, sorting or
grepping. Enforce sane locale settings for our purposes. This should not
affect end-user output from the scripts. If there is a problem in the
end-user output, then the scripts can be modified to first save the
locale settings and then restore them before final output.
commit 50d975ae460c742945df176977c9ce31d26844f2
Author: Justin Boffemmyer <flux AT sourcemage.org>
Commit: Justin Boffemmyer <flux AT sourcemage.org>
don't hardcode /dev/null
Allow the _NULL variables (CAULDRON and ENCHANT) to point to paths other
than /dev/null, and only set the value to /dev/null if the _NULL
variables aren't already defined. This allows for overriding the
throwing away of what is normally considered unncessary output, so that
it can, for example, be collected in a debug log file. Also, ensure the
variables are properly quoted, as arbitrary paths may contain things
like spaces.
+# set LC_COLLATE to C so we don't get affected by the user's locale
+# when grepping, sorting, etc.
+export LC_COLLATE="C"
+
# shorthand and non-hardcoded /dev/null for output dumping
-CAULDRON_NULL="/dev/null"
+CAULDRON_NULL="${CAULDRON_NULL:-/dev/null}"
#-------------------------------------------------------------------------------
##
@@ -34,14 +38,14 @@ function cauldron_fatal_error() {
## error handling library includes - load these first!
##
-ENCHANT_NULL="/dev/null"
+# set LC_COLLATE to C so we don't get affected by the user's locale
+# when grepping, sorting, etc.
+export LC_COLLATE="C"
+
+# shorthand and non-hardcoded /dev/null for output dumping
+ENCHANT_NULL="${ENCHANTMENT_NULL:-/dev/null}"