projects
/
zzz-pokedex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c8551bf
)
Fix crash when stdin has no encoding.
author
Eevee
<git@veekun.com>
Tue, 25 Aug 2009 15:07:54 +0000
(08:07 -0700)
committer
Eevee
<git@veekun.com>
Tue, 25 Aug 2009 15:07:54 +0000
(08:07 -0700)
pokedex/__init__.py
patch
|
blob
|
history
diff --git
a/pokedex/__init__.py
b/pokedex/__init__.py
index
ccffaf2
..
6a4ab95
100644
(file)
--- a/
pokedex/__init__.py
+++ b/
pokedex/__init__.py
@@
-15,7
+15,7
@@
def main():
# XXX there must be a better way to get Unicode argv
# XXX this doesn't work on Windows durp
# XXX there must be a better way to get Unicode argv
# XXX this doesn't work on Windows durp
- enc = sys.stdin.encoding
+ enc = sys.stdin.encoding
or 'utf8'
args = [_.decode(enc) for _ in args]
# Find the command as a function in this file
args = [_.decode(enc) for _ in args]
# Find the command as a function in this file