Skip to content

Commit

Permalink
pronunciation.txt needs to retain BOM and tabs (#522)
Browse files Browse the repository at this point in the history
* Revert "Remove BOM and hard tabs that habve been breaking samples repot builds for the last week."

This reverts commit 67bd7c5.

* exception for sampledata

* allow all sampledata/ .txt to potentially have a BOM or hard tabs
  • Loading branch information
mahilleb-msft authored Feb 25, 2020
1 parent 67bd7c5 commit 9ff8c23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ci/check-git-head.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ checkEmptyStdout \
# Note: we rely on binary files being identified correctly (cf. above)
# TODO limit to specific extensions if necessary
checkEmptyStdout \
"git grep -I -l \$'\t' $gitTree | cut -d: -f2- | grep -v ^external/ | grep -v \.sln$ | grep -v /Makefile$ | grep -v project\.pbxproj | grep -v Info\.plist" \
"git grep -I -l \$'\t' $gitTree | cut -d: -f2- | grep -v -e ^external/ -e \.sln$ -e /Makefile$ -e project\.pbxproj -e Info\.plist -e sampledata/.*\.txt" \
"text file(s) with hard tabs encountered"

checkEmptyStdout \
"git ls-tree --full-tree -l -r $gitTree | grep '^100644 blob .*\\.sh'" \
"Shell scripts should have executable permissions set, please fix"

checkEmptyStdout \
"git grep -I -l $'\xEF\xBB\xBF' $gitTree | cut -d: -f2" \
"git grep -I -l $'\xEF\xBB\xBF' $gitTree | cut -d: -f2 | grep -v sampledata/.*\.txt" \
"BOM detected, please remove from beginning of files (or add an exception)"

# Note: we rely on binary files being identified correctly (cf. above)
Expand Down
6 changes: 3 additions & 3 deletions sampledata/customspeech/en-US/training/pronunciation.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
3CPO three c p o
CNTK c n t k
IEEE i triple e
3CPO three c p o
CNTK c n t k
IEEE i triple e

0 comments on commit 9ff8c23

Please sign in to comment.