Encodage, Unicode.
darcs-hash:20060218162406-68412-09f830e1b1124d493ea43d4e36d8f6745327ba5d.gz
This commit is contained in:
parent
1d2386d1fe
commit
c0084562e0
2 changed files with 5 additions and 4 deletions
|
@ -14,7 +14,7 @@ try:
|
|||
from locale import getpreferredencoding
|
||||
encoding = getpreferredencoding()
|
||||
except:
|
||||
encoding = "ISO-8859-15"
|
||||
encoding = sys.stdin.encoding or "ISO-8859-15"
|
||||
|
||||
if 'TERM' in os.environ and os.environ['TERM'] != 'unknown':
|
||||
el = os.popen('tput cr ; tput el').read()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue