#308 cant enter basic password with language seto to es_US.UTF8
Closed: Fixed None Opened 13 years ago by ausil.

ipa user-add --first=Mythtv --last=User --homedir=/home/mythtv --shell=/bin/bash --email=mythtv@ausil.us --password mythtv
password:
ipa: ERROR: UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 45: ordinal not in range(128)
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/ipalib/cli.py", line 948, in run
sys.exit(api.Backend.cli.run(argv))
File "/usr/lib/python2.6/site-packages/ipalib/cli.py", line 791, in run
self.prompt_interactively(cmd, kw)
File "/usr/lib/python2.6/site-packages/ipalib/cli.py", line 880, in prompt_interactively
self.Backend.textui.prompt_password(param.cli_name)
File "/usr/lib/python2.6/site-packages/ipalib/cli.py", line 507, in prompt_password
_('Enter %(label)s again to verify: ') % dict(label=label)
File "/usr/lib64/python2.6/getpass.py", line 68, in unix_getpass
passwd = _raw_input(prompt, stream, input=input)
File "/usr/lib64/python2.6/getpass.py", line 124, in _raw_input
prompt = str(prompt)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 45: ordinal not in range(128)
ipa: ERROR: an internal error has occurred

LANG was set to es_US.UTF8

when set to en_US.UTF8 it was ok

this was using ipa-server-1.91-0.2010092717gitc187702.fc13.x86_64


use utf-8 encoding by default, print as unicode
freeipa-562-encoding.patch

Note that this patch relies on patch freeipa-561-encoding.patch which provides the python encoding plugin.

Metadata Update from @ausil:
- Issue assigned to rcritten
- Issue set to the milestone: FreeIPA 2.0 - 2010/10

7 years ago

Login to comment on this ticket.

Metadata