commit 26e56c551a12134891302ec4e9e4e1be7b696df9
parent 604104910f82d9f7b4bbbcc2466b2f2a960b71f3
Author: Dylan Araps <dylan.araps@gmail.com>
Date: Thu, 26 Mar 2020 12:21:57 +0200
kiss: Force C locale
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/kiss b/kiss
@@ -1342,6 +1342,11 @@ main() {
# variable is ever changed.
old_ifs=$IFS
+ # Force the C locale to speed up things like 'grep' which disable unicode
+ # etc when this is set. We don't need unicode and a speed up is always
+ # welcome.
+ export LC_ALL=C LANG=C
+
# Catch errors and ensure that build files and directories are cleaned
# up before we die. This occurs on 'Ctrl+C' as well as success and error.
trap pkg_clean EXIT INT