Lines Matching refs:charset
225 def do_test(firstlines, message, charset, lineno):
228 with open(TESTFN, "w", encoding=charset) as output:
262 for charset in ("ascii", "iso-8859-1", "utf-8", "GBK"):
263 if charset == "ascii":
265 elif charset == "GBK":
269 do_test("# coding: {0}\n".format(charset),
270 text, charset, 4)
271 do_test("#!shebang\n# coding: {0}\n".format(charset),
272 text, charset, 5)
273 do_test(" \t\f\n# coding: {0}\n".format(charset),
274 text, charset, 5)