[crush-tools] r528 committed - * fix locale checks (seems LC_NUMERIC isn't sufficient)

1 view
Skip to first unread message

crush...@googlecode.com

unread,
Mar 15, 2013, 9:37:13 PM3/15/13
to crush...@googlegroups.com
Revision: 528
Author: warlock.cc
Date: Fri Mar 15 18:37:03 2013
Log: * fix locale checks (seems LC_NUMERIC isn't sufficient)

http://code.google.com/p/crush-tools/source/detail?r=528

Modified:
/trunk/src/aggregate/test/test_05.sh

=======================================
--- /trunk/src/aggregate/test/test_05.sh Thu Aug 25 09:38:16 2011
+++ /trunk/src/aggregate/test/test_05.sh Fri Mar 15 18:37:03 2013
@@ -9,14 +9,14 @@
)

LANG_BAK="$LANG"
-LC_NUMERIC_BAK="$LC_NUMERIC"
+LC_ALL_BAK="$LC_ALL"
for subtest in `seq 0 2`; do
for locale in C en_US.utf8 es_AR.utf8; do
if [ ! "$(locale -a | grep $locale)" ]; then
continue
fi
export LANG=$locale
- export LC_NUMERIC=$locale
+ export LC_ALL=$locale
expected="$test_dir/test_$test_number.$subtest.$locale.expected"
outfile="$test_dir/test_$test_number.$subtest.$locale.actual"

@@ -41,4 +41,4 @@
done
done
LANG="$LANG_BAK"
-LC_NUMERIC="$LC_NUMERIC_BAK"
+LC_ALL="$LC_ALL_BAK"
Reply all
Reply to author
Forward
0 new messages