Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

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
@claudep claudep authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/core/management/commands/
4 django/core/management/commands/
@@ -6,7 +6,7 @@
from import BaseCommand, CommandError
from import find_command, popen_wrapper
-from django.utils._os import npath
+from django.utils._os import npath, upath
def has_bom(fn):
@@ -25,7 +25,7 @@ def compile_messages(stdout, locale=None):
basedirs = [os.path.join('conf', 'locale'), 'locale']
if os.environ.get('DJANGO_SETTINGS_MODULE'):
from django.conf import settings
- basedirs.extend(settings.LOCALE_PATHS)
+ basedirs.extend([upath(path) for path in settings.LOCALE_PATHS])
# Gather existing directories.
basedirs = set(map(os.path.abspath, filter(os.path.isdir, basedirs)))

0 comments on commit dffcc5e

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