From: Benjamin Peterson Date: Sat, 25 Oct 2008 23:43:00 +0000 (+0000) Subject: default source encoding is now utf-8 X-Git-Tag: v3.0rc2~38 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cff882ce21f0870da9f59f4e1dad094caa379f5a;p=python default source encoding is now utf-8 --- diff --git a/Tools/scripts/findnocoding.py b/Tools/scripts/findnocoding.py index a049c0f2fe..84dc3e052f 100755 --- a/Tools/scripts/findnocoding.py +++ b/Tools/scripts/findnocoding.py @@ -62,11 +62,11 @@ def needs_declaration(fullpath): infile.close() return False - # check the whole file for non-ASCII characters + # check the whole file for non utf-8 characters rest = infile.read() infile.close() - if has_correct_encoding(line1+line2+rest, "ascii"): + if has_correct_encoding(line1+line2+rest, "utf-8"): return False return True