Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #22335 -- Fixed popen_wrapper error on non-English Windows syst…

…ems.
  • Loading branch information...
commit 3cdb0baa453e2cc09c0a5c5c04cce66a6dc4e789 1 parent ff874f3
Zbigniew Siciarz zsiciarz authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 django/core/management/utils.py
4 django/core/management/utils.py
View
@@ -20,8 +20,10 @@ def popen_wrapper(args, os_err_exc_type=CommandError):
p = Popen(args, shell=False, stdout=PIPE, stderr=PIPE,
close_fds=os.name != 'nt', universal_newlines=True)
except OSError as e:
+ strerror = force_text(e.strerror, DEFAULT_LOCALE_ENCODING,
+ strings_only=True)
six.reraise(os_err_exc_type, os_err_exc_type('Error executing %s: %s' %
- (args[0], e.strerror)), sys.exc_info()[2])
+ (args[0], strerror)), sys.exc_info()[2])
output, errors = p.communicate()
return (
output,
Please sign in to comment.
Something went wrong with that request. Please try again.