unicode file name stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 01 Oct 2009 09:41:34 +0200
branchstable
changeset 3541 63ba0a669c4f
parent 3540 9428810469a6
child 3542 4c92cd09882f
unicode file name
devtools/fill.py
--- a/devtools/fill.py	Thu Oct 01 09:41:26 2009 +0200
+++ b/devtools/fill.py	Thu Oct 01 09:41:34 2009 +0200
@@ -173,7 +173,7 @@
     def generate_bytes(self, attrname, index, format=None):
         # modpython way
         fakefile = Binary("%s%s" % (attrname, index))
-        fakefile.filename = "file_%s" % attrname
+        fakefile.filename = u"file_%s" % attrname
         fakefile.value = fakefile.getvalue()
         return fakefile