cuckoobox/cuckoo — pull request #47 by Rafiot (2012-09-03 22:02:21+00:00)
Title: Decode the file paths with the codec 'mbcs'.

mbcs is the default encoding used by windows. If the default language of
the system is not english and you have a non-ascii character in a path,
the module "JsonDump" will fail at runtime.

My system is in French (don't ask... :) ) and analysis.log contains entries like:

INFO: Dropped file "C:\Documents and Settings\raphael\Menu Dmarrer\Programmes\....

My pull request will fix that problem by decoding the path in utf-8.

But I'm not sure it fixes the problem properly: I should probably use the agent to pass to the host the encoding used by the guest (see http://docs.python.org/library/sys.html#sys.getfilesystemencoding).
But windows always use mbcs...

What do you think ?