Skip to content

Commit

Permalink
Contribs: patch iconv for WinRT
Browse files Browse the repository at this point in the history
  • Loading branch information
jbkempf committed Mar 10, 2014
1 parent 0be748f commit e1c3843
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions contrib/src/iconv/libiconv-winrt.patch
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions contrib/src/iconv/rules.mak
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ ifdef HAVE_ANDROID
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
Expand Down

0 comments on commit e1c3843

Please sign in to comment.