[Freeipa-users] UnicodeEncodeError using ipa user-find
Martin Basti
mbasti at redhat.com
Thu Jan 14 14:43:53 UTC 2016
On 14.01.2016 11:42, Karl Forner wrote:
> Hello,
>
> When I do:
> ipa user-find --login=$login
> I get:
>
> ipa: ERROR: UnicodeEncodeError: 'ascii' codec can't encode character
> u'\xf1' in position 25: ordinal not in range(128)
> Traceback (most recent call last):
> File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 1340, in run
> sys.exit(api.Backend.cli.run(argv))
> File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 1105, in run
> rv = cmd.output_for_cli(self.api.Backend.textui, result, *args,
> **options)
> File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line
> 1030, in output_for_cli
> textui.print_entries(result, order, labels, flags, print_all)
> File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 355, in
> print_entries
> self.print_entry(entry, order, labels, flags, print_all, format,
> indent)
> File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 395, in
> print_entry
> label, value, format, indent, one_value_per_line
> File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 318, in
> print_attribute
> self.print_indented(format % (attr, text[0]), indent)
> File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 241, in
> print_indented
> print (CLI_TAB * indent + text)
> UnicodeEncodeError: 'ascii' codec can't encode character u'\xf1' in
> position 25: ordinal not in range(128)
> ipa: ERROR: an internal error has occurred
>
> I checked that the last name of this user has a n with tilde (spanish
> for "gn" sound).
> Is this a system configuration error, or a freeIPA problem ?
>
> Thanks,
> Karl
>
>
>
>
Hello,
what is your lang settings?
$ locale
It works for me with utf-8, I was able to reproduce this only with
LC_ALL=C, what is somehow expected
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/freeipa-users/attachments/20160114/c5fc96c1/attachment.htm>
More information about the Freeipa-users
mailing list