File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -476,7 +476,7 @@ validate_commit_message() {
476476
477477 # Alert if the commit message appears to be written in Chinese.
478478 # This pattern matches any Chinese character (common CJK Unified Ideographs).
479- MISSPELLED_WORDS=$( echo " $FULL_COMMIT_MSG " | grep " [一-龥]" )
479+ MISSPELLED_WORDS=$( echo " $FULL_COMMIT_MSG " | LC_ALL=C grep " [一-龥]" )
480480 if [ -n " $MISSPELLED_WORDS " ]; then
481481 add_warning 1 " Commit message appears to be written in Chinese: $MISSPELLED_WORDS "
482482 fi
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ RETURN=0
9999
100100# Disallow non-ASCII characters in workspace path
101101workspace=$( git rev-parse --show-toplevel)
102- if echo " $workspace " | grep -q " [一-龥]" ; then
102+ if echo " $workspace " | LC_ALL=C grep -q " [一-龥]" ; then
103103 throw " The workspace path '$workspace ' contains non-ASCII characters."
104104fi
105105
You can’t perform that action at this time.
0 commit comments