Bit debugging with python and my locale, shows that my locale / python
is broken, not the script (that might do some counter measures / pre-
check ?):
XXX@XXX-office-antec ~
% cat silly.py
import locale
print "Hello there"
print locale.getdefaultlocale()
locale.setlocale(locale.LC_ALL, "")
print locale.getdefaultlocale()
XXX@XXX-office-antec ~
% locale
LANG=en_US.UTF-8
LANGUAGE=
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=C
XXX@XXX-office-antec ~
% python silly.py
Hello there
(None, None)
(None, None)
XXX@XXX-office-antec ~
% export LANGUAGE=en_US.UTF-8
XXX@XXX-office-antec ~
% python silly.py
Hello there
(None, None)
(None, None)
XXX@XXX-office-antec ~
% export LC_ALL=en_US.UTF-8
XXX@XXX-office-antec ~
% python silly.py
Hello there
('en_US', 'UTF-8')
('en_US', 'UTF-8')
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1167158
Title:
do-release-upgrade -d fails with 12.04: fatal error occurred in
DistUpgrade/DistUpgradeView.py
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager-core/+bug/1167158/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs