- fix UIMainInterface for international charsets
- bump package name tested by kili@ and Simon Kuhnle ok kili@
This commit is contained in:
parent
007fc1c9c6
commit
cdcb0ccc3a
@ -1,8 +1,8 @@
|
||||
# $OpenBSD: Makefile,v 1.19 2008/06/09 22:54:38 martynas Exp $
|
||||
# $OpenBSD: Makefile,v 1.20 2008/06/09 23:03:15 martynas Exp $
|
||||
|
||||
COMMENT= text mode rss newsreader
|
||||
DISTNAME= snownews-1.5.9
|
||||
PKGNAME= ${DISTNAME}p0
|
||||
PKGNAME= ${DISTNAME}p1
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= ${HOMEPAGE}download/
|
||||
|
||||
|
23
www/snownews/patches/patch-xmlparse_c
Normal file
23
www/snownews/patches/patch-xmlparse_c
Normal file
@ -0,0 +1,23 @@
|
||||
$OpenBSD: patch-xmlparse_c,v 1.1 2008/06/09 23:03:15 martynas Exp $
|
||||
--- xmlparse.c.orig Sun Feb 17 15:43:58 2008
|
||||
+++ xmlparse.c Tue Mar 18 18:09:33 2008
|
||||
@@ -316,6 +316,7 @@ int DeXML (struct feed * cur_ptr) {
|
||||
xmlDocPtr doc;
|
||||
xmlNodePtr cur;
|
||||
struct newsitem *cur_item;
|
||||
+ char *converted;
|
||||
|
||||
if (cur_ptr->feed == NULL)
|
||||
return -1;
|
||||
@@ -424,6 +425,11 @@ int DeXML (struct feed * cur_ptr) {
|
||||
/* Set -> title to something if it's a NULL pointer to avoid crash with strdup below. */
|
||||
if (cur_ptr->title == NULL)
|
||||
cur_ptr->title = strdup (cur_ptr->feedurl);
|
||||
+ converted = iconvert (cur_ptr->title);
|
||||
+ if (converted != NULL) {
|
||||
+ free (cur_ptr->title);
|
||||
+ cur_ptr->title = converted;
|
||||
+ }
|
||||
cur_ptr->original = strdup (cur_ptr->title);
|
||||
|
||||
/* Restore custom title. */
|
Loading…
Reference in New Issue
Block a user