summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pttbbs/util/pyutil/big5.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pttbbs/util/pyutil/big5.py b/pttbbs/util/pyutil/big5.py
index 90fbe7c7..e8919f2d 100644
--- a/pttbbs/util/pyutil/big5.py
+++ b/pttbbs/util/pyutil/big5.py
@@ -12,7 +12,7 @@ def decode(s, strip_zero=True):
b = ord(i)
if b >= 0x80:
continue
- if b == 0:
+ if (b == 0) and strip_zero:
break
ret += unichr(big5_tbl.b2u_table[b])
b = 0