Skip to content

Commit 6df2b09

Browse files
committed
README: Update clean_code() function to process more non-ASCII chars.
1 parent 540ae5c commit 6df2b09

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ files before committing them here:
3535
A shell function to do this processing is:
3636
```sh
3737
function clean_code() {
38-
cat $1 | awk "{sub(/[\t ]*\r/,\"\")}1" | expand -t 4 | tr \\200\\221\\222\\223\\224\\226\\231\\265\\327\\342 \'\'\'\"\"-\'ux\' > tmp$$
38+
chmod 644 $1
39+
cat $1 | awk "{sub(/[\t ]*\r/,\"\")}1" | expand -t 4 | tr \\200\\205\\211\\221\\222\\223\\224\\226\\231\\244\\261\\265\\302\\327\\342 \'??\'\'\"\"\\-\'??u?x\' > tmp$$
3940
mv tmp$$ $1
4041
}
4142
```

0 commit comments

Comments
 (0)