[Bug 980020] Re: kubuntu-devel-release-upgrade fails when LANG=de_DE.UTF-8

Ernst Kloppenburg ernst.kloppenburg at gmx.de
Tue Apr 17 20:30:43 UTC 2012


The problem is not with update-manager, but with kdesudo (oneiric)!

/usr/bin/kubuntu-devel-release-upgrade just executes 
kdesudo "do-release-upgrade -m desktop -f kde -d"

Calling just "do-release-upgrade -m desktop -f kde -d" works fine, and
you see the first console output line with a german umlaut.

Run with kdesudo, kdesudo has to read that output from do-release-
upgrade and echo it to the console. That fails.

This reasoning can be proved by doing a simple experiment (all in an
environment with LANG=de_DE.UTF8)

$echo  'print u"Gl\xfcck"' > tmp.py
$python tmp.py # OK
Glück
$kdesudo python tmp.py
# fails with UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 2: ordinal not in range(128)

@Brian: what is the best way to proceed?
- reassign this bug to kdesudo? With updated bug description?

-- 
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/980020

Title:
  kubuntu-devel-release-upgrade fails when LANG=de_DE.UTF-8

Status in “update-manager” package in Ubuntu:
  Confirmed

Bug description:
  $ kubuntu-devel-release-upgrade 
  Traceback (most recent call last):
    File "/usr/bin/do-release-upgrade", line 77, in <module>
      print _("Checking for a new ubuntu release")
  UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 27: ordinal not in range(128)

  $ env LANG= kubuntu-devel-release-upgrade 
  ... works fine

  ProblemType: Bug
  DistroRelease: Ubuntu 11.10
  Package: update-manager-kde 1:0.152.25.8
  ProcVersionSignature: Ubuntu 3.0.0-17.30-generic 3.0.22
  Uname: Linux 3.0.0-17-generic x86_64
  ApportVersion: 1.23-0ubuntu4
  Architecture: amd64
  Date: Thu Apr 12 18:01:49 2012
  InstallationMedia: Kubuntu 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.2)
  PackageArchitecture: all
  ProcEnviron:
   LANGUAGE=
   LANG=de_DE.UTF-8
   SHELL=/bin/bash
  SourcePackage: update-manager
  UpgradeStatus: Upgraded to oneiric on 2012-04-12 (0 days ago)

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




More information about the foundations-bugs mailing list