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'.