2009-02-02 17:00:42 -05:00
|
|
|
$OpenBSD: patch-src_input_mms_c,v 1.7 2009/02/02 22:00:42 sthen Exp $
|
|
|
|
--- src/input/mms.c.orig Sun Jan 4 10:47:28 2009
|
|
|
|
+++ src/input/mms.c Thu Jan 8 01:06:20 2009
|
2008-01-14 19:36:46 -05:00
|
|
|
@@ -48,6 +48,7 @@
|
2006-03-24 17:43:41 -05:00
|
|
|
#include <iconv.h>
|
|
|
|
#include <locale.h>
|
|
|
|
#include <langinfo.h>
|
|
|
|
+#include <localcharset.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/********** logging **********/
|
2008-06-17 21:26:40 -04:00
|
|
|
@@ -290,7 +291,7 @@ static int send_command (mms_t *this, int command,
|
2006-03-24 17:43:41 -05:00
|
|
|
|
|
|
|
#ifdef USE_ICONV
|
|
|
|
static iconv_t string_utf16_open() {
|
2009-02-02 17:00:42 -05:00
|
|
|
- return iconv_open("UTF-16LE", "UTF-8");
|
2006-03-24 17:43:41 -05:00
|
|
|
+ return iconv_open("UTF-16LE", locale_charset());
|
|
|
|
}
|
|
|
|
|
|
|
|
static void string_utf16_close(iconv_t url_conv) {
|