From 171e9e0d117a16ecea75b78566d8ccd18bded19c Mon Sep 17 00:00:00 2001 From: Denys Havrysh Date: Wed, 17 Aug 2016 10:28:48 +0300 Subject: [PATCH] Fix locale issues: use POSIX character classes instead of ranges --- bootstrap-salt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index 0d055d9..9b5a649 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -858,7 +858,7 @@ __unquote_string() { # DESCRIPTION: Convert 'CamelCased' strings to 'Camel Cased' #---------------------------------------------------------------------------------------------------------------------- __camelcase_split() { - echo "$*" | sed -e 's/\([^A-Z-]\)\([A-Z]\)/\1 \2/g' + echo "$*" | sed -e 's/\([^[:upper:][:punct:]]\)\([[:upper:]]\)/\1 \2/g' } #--- FUNCTION -------------------------------------------------------------------------------------------------------