Skip to content

Commit 54d39a5

Browse files
committed
Fixed Locale Bug
Fix: - "Try/Catch" for setting the locale. - Tries US English, then C
1 parent 5fd0a81 commit 54d39a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chronometer2.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
# SETS LOCALE
66
# Issue 5: https://github.com/jpmck/chronometer2/issues/5
77
# Updated to en_US to support
8-
export LC_ALL=en_US.UTF-8
8+
export LC_ALL=en_US.UTF-8 > /dev/null 2>&1 || export LC_ALL=C.UTF-8 > /dev/null 2>&1
99

10-
chronometer2Version="1.3"
10+
chronometer2Version="1.3.1"
1111

1212
# COLORS
1313
blueColor=$(tput setaf 6)

0 commit comments

Comments
 (0)