Some users may run moinmoin under Windows which is not utf-8 charset. I run moinmoin under Simplified Chinese Windows XP which is using gbk charset. If users upload attachment in non-ASCII charset filename, the uploading will failed sometime. I found moinmoin will convert the attachment filename into utf-8 then save it to local file system on server. I think this is not a good solution. Why not save the attachment filename into WikinameFS as WikiPage does?

So I modified the AttachFile.py file to make the attachment filename save into a wikinameFS. This can solve the long time charset error on the non-ascii charset attachments.

Someone will need this if he/she is running moinmoin under non-English Windows system.

  • [get | view] (2010-06-08 14:53:30, 5.2 KB) [[attachment:moinmoin_192_attachfile.patch]]
 All files | Selected Files: delete move to page copy to page


CategoryFeatureRequest

MoinMoin: FeatureRequests/UseWikinameForAttachmentAsPageDoes (last edited 2010-06-08 14:57:22 by 114)