diff --git a/django/core/management/utils.py b/django/core/management/utils.py
index 769f972..d6d0e41 100644
a
|
b
|
|
1 | 1 | import os |
2 | 2 | from subprocess import PIPE, Popen |
3 | 3 | |
| 4 | from django.utils.encoding import force_text, DEFAULT_LOCALE_ENCODING |
| 5 | |
4 | 6 | |
5 | 7 | def popen_wrapper(args): |
6 | 8 | """ |
… |
… |
def popen_wrapper(args):
|
11 | 13 | p = Popen(args, shell=False, stdout=PIPE, stderr=PIPE, |
12 | 14 | close_fds=os.name != 'nt', universal_newlines=True) |
13 | 15 | output, errors = p.communicate() |
14 | | return output, errors, p.returncode |
| 16 | return output, force_text(errors, DEFAULT_LOCALE_ENCODING, strings_only=True), p.returncode |
15 | 17 | |
16 | 18 | def handle_extensions(extensions=('html',), ignored=('py',)): |
17 | 19 | """ |