Loading ...
Sorry, an error occurred while loading the content.

4372Re: [Cheetahtemplate-discuss] [PATCH] Convert unicode compiled template to an utf8 char buffer when writing to a file

Expand Messages
  • Jean-Baptiste Quenot
    Apr 2, 2009
      Please find attached a unit test patch for this.

      I get the following result:

      .....Compiling /tmp/tmp6ErsxQ.tmpl -> /tmp/tmp6ErsxQ.py
      ERROR __main__.JBQ_UTF8_Test6.runTest ()
      Traceback (most recent call last):
      File "src/Tests/Unicode.py", line 107, in runTest
      mod = loadModule(modname, ["/tmp"])
      File "src/Tests/Unicode.py", line 74, in loadModule
      mod = imp.load_module(moduleName, fp, pathname, description)
      File "/tmp/tmp6ErsxQ.py", line 86
      SyntaxError: Non-ASCII character '\xc3' in file /tmp/tmp6ErsxQ.py on
      line 86, but no encoding declared; see
      http://www.python.org/peps/pep-0263.html for details (tmp6ErsxQ.py,
      line 86)

      Ran 6 tests in 0.042s

      FAILED (errors=1)
      Jean-Baptiste Quenot
    • Show all 16 messages in this topic