[Bug 1556386] Re: ubuntu-support-status crashed with UnicodeEncodeError in __main__: ascii codec can t encode character xf6 in position 29: ordinal not in range 128

Matthias Andree 1556386 at bugs.launchpad.net
Thu Dec 1 09:25:50 UTC 2016


Workaround: run:

env LC_ALL=C LANGUAGE= ubuntu-support-status

or

env LANGUAGE=en ubuntu-support-status

So it appears that the LANGUAGE=... variable takes precedence over LANG
and LC_* although it's not a GUI application, and of course, ubuntu-
support-status does not have a man page where this could be documented,
and update-manager also does NOT document or reference this variable in
an "ENVIRONMENT" section.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1556386

Title:
  ubuntu-support-status crashed with UnicodeEncodeError in __main__:
  ascii  codec can t encode character   xf6  in position 29: ordinal not
  in range 128

Status in update-manager package in Ubuntu:
  Confirmed

Bug description:
  In order to get output in English (not my local Swedish language) I
  ran the following alias in a terminal window

  alias LC='LC_ALL=C;LANG=C'

  and after that I ran

  ubuntu-support-status --show-unsupported

  $ LC
  $ ubuntu-support-status --show-unsupported
  Traceback (most recent call last):
    File "/usr/bin/ubuntu-support-status", line 145, in <module>
      print(_("Support status summary of '%s':") % os.uname()[1])
  UnicodeEncodeError: 'ascii' codec can't encode character '\xf6' in position 29: ordinal not in range(128)

  (I have used LC for years in several versions of Ubuntu without
  problems.)

  The command

  ubuntu-support-status --show-unsupported

  works in my local language.

  ProblemType: Crash
  DistroRelease: Ubuntu 16.04
  Package: update-manager-core 1:15.10.3
  ProcVersionSignature: Ubuntu 4.4.0-11.26-generic 4.4.4
  Uname: Linux 4.4.0-11-generic i686
  NonfreeKernelModules: nvidia
  ApportVersion: 2.20-0ubuntu3
  Aptdaemon:
   
  Architecture: i386
  CurrentDesktop: LXDE
  Date: Sat Mar 12 09:22:32 2016
  ExecutablePath: /usr/bin/ubuntu-support-status
  InstallationDate: Installed on 2016-02-28 (12 days ago)
  InstallationMedia: Lubuntu 16.04 LTS "Xenial Xerus" - Alpha i386 (20160226)
  InterpreterPath: /usr/bin/python3.5
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python3 /usr/bin/ubuntu-support-status --show-unsupported
  PythonArgs: ['/usr/bin/ubuntu-support-status', '--show-unsupported']
  SourcePackage: update-manager
  Title: ubuntu-support-status crashed with UnicodeEncodeError in __main__: 'ascii' codec can't encode character '\xf6' in position 29: ordinal not in range(128)
  Traceback:
   Traceback (most recent call last):
     File "/usr/bin/ubuntu-support-status", line 145, in <module>
       print(_("Support status summary of '%s':") % os.uname()[1])
   UnicodeEncodeError: 'ascii' codec can't encode character '\xf6' in position 29: ordinal not in range(128)
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm audio cdrom dialout dip fax floppy libvirtd lpadmin netdev plugdev sambashare scanner sudo tape video

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1556386/+subscriptions



More information about the foundations-bugs mailing list