Ticket #18404: encoding.patch

File encoding.patch, 629 bytes (added by andkit@…, 12 years ago)
  • storage.py

    old new  
    11from __future__ import with_statement
    22import hashlib
    33import os
     4import sys
    45import posixpath
    56import re
    67from urllib import unquote
     
    268269        mod = import_module(app)
    269270        mod_path = os.path.dirname(mod.__file__)
    270271        location = os.path.join(mod_path, self.source_dir)
     272        fs_encoding = sys.getfilesystemencoding() or sys.getdefaultencoding()
     273        location = location.decode(fs_encoding)
    271274        super(AppStaticStorage, self).__init__(location, *args, **kwargs)
    272275
    273276
Back to Top