From d5bdde7a93322005bb29411f12e3a27da8708214 Mon Sep 17 00:00:00 2001 From: mboelen Date: Thu, 2 Apr 2015 13:29:18 +0200 Subject: [PATCH] Changed counting with -m to support locale --- include/functions | 4 ++-- 1 file 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'.