Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #20990 -- Ensured unicode paths in compilemessages

Thanks Gregoire Astruc for the report and furins for the review.
  • Loading branch information...
commit dffcc5e97988d92b2b8a3bba23a49bcb3cf5d040 1 parent 2397daa
Claude Paroz authored November 11, 2013
4  django/core/management/commands/compilemessages.py
@@ -6,7 +6,7 @@
6 6
 
7 7
 from django.core.management.base import BaseCommand, CommandError
8 8
 from django.core.management.utils import find_command, popen_wrapper
9  
-from django.utils._os import npath
  9
+from django.utils._os import npath, upath
10 10
 
11 11
 
12 12
 def has_bom(fn):
@@ -25,7 +25,7 @@ def compile_messages(stdout, locale=None):
25 25
     basedirs = [os.path.join('conf', 'locale'), 'locale']
26 26
     if os.environ.get('DJANGO_SETTINGS_MODULE'):
27 27
         from django.conf import settings
28  
-        basedirs.extend(settings.LOCALE_PATHS)
  28
+        basedirs.extend([upath(path) for path in settings.LOCALE_PATHS])
29 29
 
30 30
     # Gather existing directories.
31 31
     basedirs = set(map(os.path.abspath, filter(os.path.isdir, basedirs)))

0 notes on commit dffcc5e

Please sign in to comment.
Something went wrong with that request. Please try again.