0253684
--- snownews-1.5.7/config.h.orig	2005-06-05 05:50:22.000000000 -0400
0253684
+++ snownews-1.5.7/config.h	2005-08-01 21:44:51.000000000 -0400
0253684
@@ -27,10 +27,9 @@
0253684
 #include "version.h"
0253684
 #include "netio.h"
0253684
 
0253684
-/* Set your charset here. ISO-8859-1 is default. */
0253684
-#ifndef TARGET_CHARSET
0253684
-#define TARGET_CHARSET "ISO-8859-1"
0253684
-#endif
0253684
+/* Set your charset here. This overrides the CODESET setting
0253684
+   as reported by nl_langinfo() */
0253684
+/* #define TARGET_CHARSET "UTF-8" */
0253684
 
0253684
 struct feed {
0253684
 	char *feedurl;							/* Non hashified URL */
0253684
@@ -126,10 +125,16 @@
0253684
 #ifdef LOCALEPATH
0253684
 #	include <libintl.h>
0253684
 #	include <locale.h>
0253684
+#ifndef TARGET_CHARSET
0253684
+#       include <langinfo.h>
0253684
+#endif
0253684
 #endif
0253684
 
0253684
 #ifdef LOCALEPATH
0253684
 #	define _(String) gettext (String)
0253684
+#ifndef TARGET_CHARSET
0253684
+#      define TARGET_CHARSET nl_langinfo(CODESET)
0253684
+#endif
0253684
 #else
0253684
 #	define _(String) (String)
0253684
 # 	define ngettext(Singular, Plural, n) (Plural)
0253684
--- snownews-1.5.7/interface.c.orig	2005-06-05 05:50:22.000000000 -0400
0253684
+++ snownews-1.5.7/interface.c	2005-08-01 21:46:30.000000000 -0400
0253684
@@ -1151,7 +1151,8 @@
0253684
 			else
0253684
 				columns = COLS-9-strlen(_("new"));
0253684
 			
0253684
-			mvaddnstr (ypos, 1, cur_ptr->title, columns);
0253684
+			localized_msg = iconvert(cur_ptr->title);
0253684
+			mvaddnstr (ypos, 1, localized_msg, columns);
0253684
 			if (xmlStrlen((xmlChar *)cur_ptr->title) > columns)
0253684
 				mvaddstr (ypos, columns+1, "...");
0253684
 			
0a396eb
--- snownews-1.5.7/configure.orig	2005-08-29 14:40:50.000000000 -0400
0a396eb
+++ snownews-1.5.7/configure	2005-08-29 14:41:03.000000000 -0400
0a396eb
@@ -6,7 +6,7 @@
0a396eb
 # The defaults. Change here if you need.
0a396eb
 my($prefix) = "/usr/local";
0a396eb
 my($cflags) = '-Wall -Wno-format-y2k -O2 -DLOCALEPATH="\"$(LOCALEPATH)\"" -DOS=\"$(shell uname)\" `xml2-config --cflags` $(EXTRA_CFLAGS) ';
0a396eb
-my($ldflags) = '-lncurses `xml2-config --libs` $(EXTRA_LDFLAGS) ';
0a396eb
+my($ldflags) = '-lncursesw `xml2-config --libs` $(EXTRA_LDFLAGS) ';
0a396eb
 
0a396eb
 parse_cmdl_line();
0a396eb