Fix a crash in checkstyle.py when passing in non UTF-8 characters.
1. The language printed by the style checker depend on locale.
There might be differnt language other than english.
Use xml ending tag to handle the footer instead of use footer itself.
2. Use system encoding for printed text, if it is ascii, set it to
3. Fix the print out to only have one "ERRORS:" and "WARNINGS:" header.
(Bug was introduced in r.android.com/661701)
1 file changed