diff options
author | mboelen <michael@cisofy.com> | 2015-04-02 14:29:18 +0300 |
---|---|---|
committer | mboelen <michael@cisofy.com> | 2015-04-02 14:29:18 +0300 |
commit | d5bdde7a93322005bb29411f12e3a27da8708214 (patch) | |
tree | 9c6b9f17e126af7b1ff1d11d130682058d53ad37 | |
parent | d2175e833d55e02990141bdb7747d524d6f20244 (diff) |
Changed counting with -m to support locale
-rw-r--r-- | include/functions | 4 |
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'. |