﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
21627	changepassword command fails with unicode characters	Jon	Jon	"Starting with Django 1.6, the changepassword management command in the auth module fails when the user's name has non-ascii characters.

{{{
$ bin/manage changepassword
Traceback (most recent call last):
  File ""bin/manage"", line 69, in <module>
    sys.exit(djangorecipe.manage.main('project.settings'))
  File ""[..]/.eggs/djangorecipe-1.6-py2.7.egg/djangorecipe/manage.py"", line 9, in main
    management.execute_from_command_line(sys.argv)
  File ""[..]/.eggs/Django-1.6.1-py2.7.egg/django/core/management/__init__.py"", line 399, in execute_from_command_line
    utility.execute()
  File ""[..]/.eggs/Django-1.6.1-py2.7.egg/django/core/management/__init__.py"", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File ""[..]/.eggs/Django-1.6.1-py2.7.egg/django/core/management/base.py"", line 242, in run_from_argv
    self.execute(*args, **options.__dict__)
  File ""[..]/.eggs/Django-1.6.1-py2.7.egg/django/core/management/base.py"", line 285, in execute
    output = self.handle(*args, **options)
  File ""[..]/.eggs/Django-1.6.1-py2.7.egg/django/contrib/auth/management/commands/changepassword.py"", line 42, in handle
    self.stdout.write(""Changing password for user '%s'\n"" % u)
  File ""[..]/.eggs/Django-1.6.1-py2.7.egg/django/core/management/base.py"", line 65, in write
    if ending and not msg.endswith(ending):
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 33: ordinal not in range(128)
}}}

Adding {{{from __future__ import unicode_literals}}} to the changepassword.py file seems to fix it.
"	Bug	closed	contrib.auth	1.6	Release blocker	fixed			Accepted	0	0	0	0	0	0
