[vlc-commits] Contribs: patch iconv for WinRT
Jean-Baptiste Kempf
git at videolan.org
Mon Mar 10 20:50:02 CET 2014
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Mar 10 20:40:49 2014 +0100| [e1c3843fb0b20adff899ce9dd0888ef604c59b9f] | committer: Jean-Baptiste Kempf
Contribs: patch iconv for WinRT
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e1c3843fb0b20adff899ce9dd0888ef604c59b9f
---
contrib/src/iconv/libiconv-winrt.patch | 11 +++++++++++
contrib/src/iconv/rules.mak | 3 +++
2 files changed, 14 insertions(+)
diff --git a/contrib/src/iconv/libiconv-winrt.patch b/contrib/src/iconv/libiconv-winrt.patch
new file mode 100644
index 0000000..c40495d
--- /dev/null
+++ b/contrib/src/iconv/libiconv-winrt.patch
@@ -0,0 +1,11 @@
+--- iconv/libcharset/lib/localcharset.c 2014-03-10 20:39:14.105914067 +0100
++++ iconv/libcharset/lib/localcharset.c.new 2014-03-10 20:38:25.601822680 +0100
+@@ -465,7 +465,7 @@
+ GetConsoleOutputCP() encoding if it is using a TrueType font.
+ But in GUI programs and for output sent to files and pipes, GetACP()
+ encoding is the best bet. */
+- sprintf (buf, "CP%u", GetACP ());
++ sprintf (buf, "CP%u", 65001);
+ codeset = buf;
+
+ #elif defined OS2
diff --git a/contrib/src/iconv/rules.mak b/contrib/src/iconv/rules.mak
index 4b133f1..e4e4d87 100644
--- a/contrib/src/iconv/rules.mak
+++ b/contrib/src/iconv/rules.mak
@@ -31,6 +31,9 @@ endif
ifdef HAVE_IOS
$(APPLY) $(SRC)/iconv/libiconv-android-ios.patch
endif
+ifdef HAVE_WINRT
+ $(APPLY) $(SRC)/iconv/libiconv-winrt.patch
+endif
$(UPDATE_AUTOCONFIG) && cd $(UNPACK_DIR) && mv config.guess config.sub build-aux
$(UPDATE_AUTOCONFIG) && cd $(UNPACK_DIR) && mv config.guess config.sub libcharset/build-aux
$(MOVE)
More information about the vlc-commits
mailing list