Page MenuHomePhorge

Tracebacks for translations/localizations with special characters
Closed, ResolvedPublic2 Story Points

Description

Localized verbiage may break various kolab utilities:

$ docker run -it --entrypoint=/bin/bash docker.io/kolab/ci-maipo -s
$ yum clean metadata
$ yum -y install kolab-cli
$ env LANG=de_DE.UTF-8 kolab
WARNUNG: The Fully Qualified Domain Name or FQDN for this system is incorrect. Falling back to 'localdomain'.
acl-cleanup               - Clean up ACLs that use identifiers that no longer exist
add-alias                 - Add alias.
Traceback (most recent call last):
  File "/usr/sbin/kolab", line 39, in <module>
    kolab = Cli()
  File "/usr/lib/python2.7/site-packages/pykolab/cli/__init__.py", line 69, in __init__
    commands.execute('_'.join(to_execute))
  File "/usr/lib/python2.7/site-packages/pykolab/cli/commands.py", line 108, in execute
    execute("help")
  File "/usr/lib/python2.7/site-packages/pykolab/cli/commands.py", line 138, in execute
    commands[cmd_name]['function'](conf.cli_args, kw)
  File "/usr/lib/python2.7/site-packages/pykolab/cli/commands.py", line 90, in list_commands
    print "%-25s - %s" % (_command.replace('_','-'),__commands[_command]['description'])
  File "/usr/lib64/python2.7/codecs.py", line 351, in write
    data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 34: ordinal not in range(128)

Details

Ticket Type
Task

Event Timeline

vanmeeuwen assigned this task to bruederli.
vanmeeuwen raised the priority of this task from to High.
vanmeeuwen updated the task description. (Show Details)
vanmeeuwen changed Ticket Type from Task to Task.
vanmeeuwen subscribed.

I'd like to see this fixed as it is a regression that prevents us from shipping ~ 90 other fixes.

Working on it. It seems that the changes necessary to fix https://issues.kolab.org/show_bug.cgi?id=3983 now cause problems in regular shell mode (no pipe)

Working on it. It seems that the changes necessary to fix https://issues.kolab.org/show_bug.cgi?id=3983 now cause problems in regular shell mode (no pipe)

This task originally was about https://issues.kolab.org/show_bug.cgi?id=4991, not about 3983.