From cff882ce21f0870da9f59f4e1dad094caa379f5a Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sat, 25 Oct 2008 23:43:00 +0000 Subject: [PATCH] default source encoding is now utf-8 --- Tools/scripts/findnocoding.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/scripts/findnocoding.py b/Tools/scripts/findnocoding.py index a049c0f2fee..84dc3e052fa 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