From 5812a64b37d450c3df6b7825af9316b10975b5cd Mon Sep 17 00:00:00 2001 From: piaip Date: Tue, 11 Feb 2014 12:18:28 +0000 Subject: Enable strip_zero in big5.decode. git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5927 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/util/pyutil/big5.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3