Skip to content

Commit

Permalink
Fix locale check when checking for non-printable chars
Browse files Browse the repository at this point in the history
  • Loading branch information
rkjaran committed Sep 10, 2024
1 parent 13441d0 commit 4e2ec4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion egs/wsj/s5/utils/validate_data_dir.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ fi
num_utts=`cat $tmpdir/utts | wc -l`
if ! $no_text; then
if ! $non_print; then
if locale -a | grep "C.UTF-8" >/dev/null; then
if locale -a | grep "C.utf8\|C.UTF-8" >/dev/null; then
L=C.UTF-8
else
L=en_US.UTF-8
Expand Down

0 comments on commit 4e2ec4d

Please sign in to comment.