Re: [Bug 1051760] [NEW] Ubuntu 12.04 root python got“unknownencoding:utf-8”
Barry Warsaw
1051760 at bugs.launchpad.net
Mon Sep 17 19:37:00 UTC 2012
On Sep 17, 2012, at 07:25 PM, Launchpad Bug Tracker wrote:
>sudo python
>Python 2.7.3 (default, Aug 1 2012, 05:14:39)
>[GCC 4.6.3] on linux2
>Type "help", "copyright", "credits" or "license" for more information.
>>>> u'foo'.encode('utf-8')
>Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
>LookupError: unknown encoding: utf-8
Works for me on 12.04 and 12.10.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python2.7 in Ubuntu.
https://bugs.launchpad.net/bugs/1051760
Title:
Ubuntu 12.04 root python got “unknown encoding: utf-8”
Status in “python2.7” package in Ubuntu:
New
Bug description:
python
Python 2.7.3 (default, Aug 1 2012, 05:14:39)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> u'foo'.encode('utf-8')
'foo'
>>>
sudo python
Python 2.7.3 (default, Aug 1 2012, 05:14:39)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> u'foo'.encode('utf-8')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
LookupError: unknown encoding: utf-8
>>>
---
ApportVersion: 2.0.1-0ubuntu13
Architecture: amd64
DistroRelease: Ubuntu 12.04
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
NonfreeKernelModules: fglrx
Package: python 2.7.3-0ubuntu2
PackageArchitecture: amd64
ProcEnviron:
LANGUAGE=zh:zh_CN:en
TERM=xterm
PATH=(custom, user)
LANG=zh_CN.UTF-8
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 3.2.0-30.48-generic 3.2.27
Tags: precise
Uname: Linux 3.2.0-30-generic x86_64
UpgradeStatus: Upgraded to precise on 2012-04-29 (140 days ago)
UserGroups: adm admin audio cdrom dialout dip fax floppy fuse lpadmin netdev plugdev powerdev sambashare scanner tape vboxusers video
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/1051760/+subscriptions
More information about the foundations-bugs
mailing list