aboutsummaryrefslogtreecommitdiffstats
path: root/community/gammu/disable-at-charset-test.patch
diff options
context:
space:
mode:
authorTBK <tbk@jjtc.dk>2017-11-22 03:52:39 +0100
committerJakub Jirutka <jakub@jirutka.cz>2017-11-29 23:03:36 +0100
commit86563770727dd2b567ccb74be1c9737ddec79f68 (patch)
tree21f21309905352c80f990bcd3a64c2fc02be733e /community/gammu/disable-at-charset-test.patch
parentca11d13285797a10bd38a4b2d14322303e56d51b (diff)
downloadaports-86563770727dd2b567ccb74be1c9737ddec79f68.tar.bz2
aports-86563770727dd2b567ccb74be1c9737ddec79f68.tar.xz
community/gammu: upgrade to 1.38.5 and modernize abuild
Diffstat (limited to 'community/gammu/disable-at-charset-test.patch')
-rw-r--r--community/gammu/disable-at-charset-test.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/community/gammu/disable-at-charset-test.patch b/community/gammu/disable-at-charset-test.patch
new file mode 100644
index 0000000000..1ab18c89b8
--- /dev/null
+++ b/community/gammu/disable-at-charset-test.patch
@@ -0,0 +1,23 @@
+Workaround for flaw in musl 1.1.8's CP437 char mapping
+
+FIXME: Remove this patch after musl upgrade.
+
+See: http://www.openwall.com/lists/musl/2017/11/22/2
+--- a/tests/at-charset.c
++++ b/tests/at-charset.c
+@@ -93,15 +93,6 @@
+ test_result(mywstrncmp(ubuffer, latin1text, sizeof(latin1text) / 2) == TRUE);
+
+ #ifdef ICONV_FOUND
+- Priv->Charset = AT_CHARSET_PCCP437;
+- error = ATGEN_EncodeText(s, latin1text, sizeof(latin1text) / 2, buffer, sizeof(buffer), &result);
+- gammu_test_result(error, "Encode - 3");
+- strconv_test_result(latin1cp437, buffer, result);
+-
+- error = ATGEN_DecodeText(s, buffer, result, ubuffer, sizeof(ubuffer), FALSE, FALSE);
+- gammu_test_result(error, "Decode - 3");
+- test_result(mywstrncmp(ubuffer, latin1text, sizeof(latin1text) / 2) == TRUE);
+-
+ Priv->Charset = AT_CHARSET_ISO88591;
+ error = ATGEN_EncodeText(s, latin1text, sizeof(latin1text) / 2, buffer, sizeof(buffer), &result);
+ gammu_test_result(error, "Encode - 4");