termux-packages/packages/suite3270/Common-codepage.c.patch

15 lines
378 B
Diff
Raw Normal View History

2022-01-08 20:48:36 +01:00
--- a/Common/codepage.c
+++ b/Common/codepage.c
@@ -105,7 +105,11 @@
setlocale(LC_ALL, "");
/* Figure out the locale code set (character set encoding). */
+#ifdef __ANDROID__
+ codeset_name = "UTF-8";
+#else
codeset_name = nl_langinfo(CODESET);
+#endif
# if defined(__CYGWIN__) /*[*/
/*
* Cygwin's locale support is quite limited. If the locale