mirror of https://github.com/citusdata/citus.git
Merge pull request #3450 from citusdata/fix-ci-locale-issues
diff-filter: use utf8 encoding, not asciipull/3454/head
commit
1adc293286
|
@ -32,7 +32,7 @@ then
|
|||
touch "$file1" # when adding a new test the expected file does not exist
|
||||
sed -Ef "$BASEDIR/normalize.sed" < "$file1" > "$file1.modified"
|
||||
sed -Ef "$BASEDIR/normalize.sed" < "$file2" > "$file2.modified"
|
||||
"$DIFF" -w $args "$file1.modified" "$file2.modified" | diff-filter "$BASEDIR/normalize.sed"
|
||||
"$DIFF" -w $args "$file1.modified" "$file2.modified" | LC_CTYPE=C.UTF-8 diff-filter "$BASEDIR/normalize.sed"
|
||||
exit ${PIPESTATUS[0]}
|
||||
else
|
||||
exec "$DIFF" -w $args "$file1" "$file2"
|
||||
|
|
|
@ -49,7 +49,7 @@ def main():
|
|||
if line.startswith('+++ '):
|
||||
tab = line.rindex('\t')
|
||||
fname = line[4:tab]
|
||||
file2 = FileScanner(open(fname.replace('.modified', '')), sed)
|
||||
file2 = FileScanner(open(fname.replace('.modified', ''), encoding='utf8'), sed)
|
||||
stdout.write(line)
|
||||
elif line.startswith('@@ '):
|
||||
idx_start = line.index('+') + 1
|
||||
|
|
Loading…
Reference in New Issue