I really did mean to add this file

This commit is contained in:
jakemsr 2005-12-08 06:07:02 +00:00
parent 5f19768387
commit 93df3b318b

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-src_readxml_c,v 1.1 2005/12/08 06:07:02 jakemsr Exp $
--- src/readxml.c.orig Mon Jan 31 18:26:19 2005
+++ src/readxml.c Wed Dec 7 21:39:36 2005
@@ -34,6 +34,8 @@
#include <locale.h>
#endif
+#include <localcharset.h>
+
static const char RCSID[]="$Id: patch-src_readxml_c,v 1.1 2005/12/08 06:07:02 jakemsr Exp $";
int parser_err=0, parser_acceptbody=0;
@@ -207,7 +209,7 @@ static iconv_t get_conv()
}
} else
fprintf(stderr,"WARN: Error reading locale (%m), assuming C\n");
- enc=nl_langinfo(CODESET);
+ enc=locale_charset();
fprintf(stderr,"INFO: Converting filenames to %s\n",enc);
ic=iconv_open(enc,"UTF-8");
if( ic==((iconv_t)-1) ) {