Skip to content

Commit

Permalink
fix(duplicates): support multibyte characters
Browse files Browse the repository at this point in the history
  • Loading branch information
azusa-tomita authored and JamieMason committed Nov 14, 2017
1 parent 0702e8b commit 43d6ce7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/imageOptimBashLib
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ function add_directory_option_to_index {
# Remove any duplicate files in our index, which may have occurred when importing directories whose
# images have already been gathered by other means.
function remove_duplicate_indexes {
sort -uf "$INDEX_FILE" > "$INDEX_FILE.uniq.txt"
LC_ALL=C sort -uf "$INDEX_FILE" > "$INDEX_FILE.uniq.txt"
mv "$INDEX_FILE.uniq.txt" "$INDEX_FILE"
}

Expand Down
2 changes: 1 addition & 1 deletion src/imageOptimBashLib
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ function add_directory_option_to_index {
# Remove any duplicate files in our index, which may have occurred when importing directories whose
# images have already been gathered by other means.
function remove_duplicate_indexes {
sort -uf "$INDEX_FILE" > "$INDEX_FILE.uniq.txt"
LC_ALL=C sort -uf "$INDEX_FILE" > "$INDEX_FILE.uniq.txt"
mv "$INDEX_FILE.uniq.txt" "$INDEX_FILE"
}

Expand Down

0 comments on commit 43d6ce7

Please sign in to comment.