# locale LANG=C LC_CTYPE="C" LC_NUMERIC="C" LC_TIME="C" LC_COLLATE="C" LC_MONETARY="C" LC_MESSAGES="C" LC_PAPER="C" LC_NAME="C" LC_ADDRESS="C" LC_TELEPHONE="C" LC_MEASUREMENT="C" LC_IDENTIFICATION="C" LC_ALL=
I confirm it works using LC_ALL=en_US.utf8 ipa user-find --login=$login I'm using the adelton docker. Maybe the default locale should be set to en_US.utf8 ? Are there any expected downsides ? Thanks. On Thu, Jan 14, 2016 at 3:43 PM, Martin Basti <mba...@redhat.com> wrote: > > > 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 > > >
-- Manage your subscription for the Freeipa-users mailing list: https://www.redhat.com/mailman/listinfo/freeipa-users Go to http://freeipa.org for more info on the project