All non-ASCII files should be encoded in UTF-8. So far, the ZSH script `Scripts/developer_scripts/detect_wrong_encoding` detects wrong encoding in source/header files of include/, src/, and doc/.
6 lines
237 B
Bash
Executable File
6 lines
237 B
Bash
Executable File
#!/bin/zsh
|
|
|
|
setopt extendedglob
|
|
|
|
file ^build*/(demo|test|examples|include|doc|src)/**/*.(h|hpp|H|C|c|cpp)| egrep -v ':[[:space:]]+(C(\+\+)? source, |LaTeX document, |HTML document, )?(ASCII|UTF-8 Unicode) text(, with very long lines)?$'
|