termux-packages/packages/suite3270/Common-pr3287-codepage.c.patch
2022-01-14 15:10:40 +02:00

15 lines
350 B
Diff

--- a/Common/pr3287/codepage.c
+++ b/Common/pr3287/codepage.c
@@ -78,7 +78,11 @@
#if !defined(_WIN32) /*[*/
setlocale(LC_ALL, "");
+#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