changeset 1822:e2be013c7204

info action: fixed size display problem with non-ASCII filenames
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 25 Feb 2007 18:43:17 +0100
parents 9595d9d5e5ae
children 2709cf88f055
files MoinMoin/action/info.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/info.py	Sun Feb 25 18:15:42 2007 +0100
+++ b/MoinMoin/action/info.py	Sun Feb 25 18:43:17 2007 +0100
@@ -146,9 +146,8 @@
                 if line.action != 'ATTDEL':
                     from MoinMoin.action import AttachFile
                     page_dir = AttachFile.getAttachDir(request, pagename)
-                    filepath = os.path.join(page_dir, filename)
+                    filepath = os.path.join(page_dir, filename.encode(config.charset))
                     try:
-                        # FIXME, wrong path on non-std names
                         size = os.path.getsize(filepath)
                     except:
                         pass