Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormboelen <michael@cisofy.com>2015-04-02 14:29:18 +0300
committermboelen <michael@cisofy.com>2015-04-02 14:29:18 +0300
commitd5bdde7a93322005bb29411f12e3a27da8708214 (patch)
tree9c6b9f17e126af7b1ff1d11d130682058d53ad37
parentd2175e833d55e02990141bdb7747d524d6f20244 (diff)
Changed counting with -m to support locale
-rw-r--r--include/functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/functions b/include/functions
index b02d480e..2737a660 100644
--- a/include/functions
+++ b/include/functions
@@ -215,8 +215,8 @@
if [ ! "${TEXT}" = "" ]; then
# Show warnings always, and other messages if no quiet is being used
if [ ${QUIET} -eq 0 -o "${RESULT}" = "WARNING" ]; then
- # Display
- LINESIZE=`echo "${TEXT}" | wc -c | tr -d ' '`
+ # Display (counting with -m instead of -c, to support language locale)
+ LINESIZE=`echo "${TEXT}" | wc -m | tr -d ' '`
if [ ${INDENT} -gt 0 ]; then SPACES=`expr 62 - ${INDENT} - ${LINESIZE}`; fi
if [ ${CRONJOB} -eq 0 ]; then
# Check if we already have already discovered a proper echo command tool. It not, set it default to 'echo'.