From 75738ceeab380e852739a9b78e0d907f3e611478 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Mon, 22 Jun 2020 10:25:02 +0200 Subject: Fix for language detection, unset LANG as right place --- CHANGELOG.md | 1 + include/consts | 4 ---- lynis | 5 +++++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3baafee1..deaac158 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - BOOT-5122 - Presence check for grub.d added - KRNL-5830 - Improved version detection for non-symlinked kernel - Added Kali Linux +- Fix: language detection - End-of-life database updated - Small code enhancements diff --git a/include/consts b/include/consts index 7968ef1f..1a75ae68 100644 --- a/include/consts +++ b/include/consts @@ -33,10 +33,6 @@ BIN_PATHS="/bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin \ ETC_PATHS="/etc /usr/local/etc" -# Do not use specific language, fall back to default -# Some tools with translated strings are very hard to parse -unset LANG - # ################################################################################# # diff --git a/lynis b/lynis index 9b0e5894..76722baa 100755 --- a/lynis +++ b/lynis @@ -241,6 +241,11 @@ echo "Could not find languages directory (file: ${DBDIR}/languages/en)" exit 1 fi + + # Now that we have determined the language, we unset it from shell + # Some tools with translated strings are very hard to parse + unset LANG + # ################################################################################# # -- cgit v1.2.3