freebsd-ports/net/straw/files/patch-src::lib::utils.py
Joe Marcus Clarke dc098e07f7 Fix a problem where straw wouldn't show any articles if the locale was set
to anything other than C.  Also, make sure we persist articles across reboots.

Approved by:	maintainer
2003-11-16 09:03:24 +00:00

11 lines
360 B
Python

--- src/lib/utils.py.orig Sun Nov 16 03:58:11 2003
+++ src/lib/utils.py Sun Nov 16 03:58:32 2003
@@ -22,7 +22,7 @@
previous = None
while res_len < chars and i < frag_len - 1:
i += 1
- current = fragment[i]
+ current = fragment[i].encode('utf-8')
if in_tag:
if in_attr:
if current == '"':