Public bug reported:

Binary package hint: python

1) Ubuntu 9.10
2) python 2.6.4-0ubuntu1

the python script i run is:

#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
print sys.getdefaultencoding()

just these four lines.

3) i expect that this prints out the encoding given in the second line of the 
script; 'utf-8' in this case as defined in
http://www.python.org/dev/peps/pep-0263/ .
(running this script in eclipse using pydev really shows this behaviour).

4) the result of the script when run in bash is: 'ascii'. no matter what
encoding i specify in the second line.

** Affects: python-defaults (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: python

-- 
python ignores encoding definition
https://bugs.launchpad.net/bugs/516064
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to