Skip to content

Commit 4e2ec4d

Browse files
committed
Fix locale check when checking for non-printable chars
1 parent 13441d0 commit 4e2ec4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

egs/wsj/s5/utils/validate_data_dir.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ fi
126126
num_utts=`cat $tmpdir/utts | wc -l`
127127
if ! $no_text; then
128128
if ! $non_print; then
129-
if locale -a | grep "C.UTF-8" >/dev/null; then
129+
if locale -a | grep "C.utf8\|C.UTF-8" >/dev/null; then
130130
L=C.UTF-8
131131
else
132132
L=en_US.UTF-8

0 commit comments

Comments
 (0)