summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/libunistring/libunistring/iconv-m4-remove-the-test-to-convert-euc-jp.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/libunistring/libunistring/iconv-m4-remove-the-test-to-convert-euc-jp.patch')
-rw-r--r--meta/recipes-support/libunistring/libunistring/iconv-m4-remove-the-test-to-convert-euc-jp.patch56
1 files changed, 36 insertions, 20 deletions
diff --git a/meta/recipes-support/libunistring/libunistring/iconv-m4-remove-the-test-to-convert-euc-jp.patch b/meta/recipes-support/libunistring/libunistring/iconv-m4-remove-the-test-to-convert-euc-jp.patch
index d4489165bf..9e8ce2270d 100644
--- a/meta/recipes-support/libunistring/libunistring/iconv-m4-remove-the-test-to-convert-euc-jp.patch
+++ b/meta/recipes-support/libunistring/libunistring/iconv-m4-remove-the-test-to-convert-euc-jp.patch
@@ -1,6 +1,6 @@
1From 8d99a368615656a835f5502326afd31cec2cebfe Mon Sep 17 00:00:00 2001 1From 30562065ba9e4c238e76100b5f9f0c5add0e635b Mon Sep 17 00:00:00 2001
2From: Jackie Huang <jackie.huang@windriver.com> 2From: Jackie Huang <jackie.huang@windriver.com>
3Date: Mon, 16 Sep 2013 18:16:12 +0800 3Date: Tue, 5 Dec 2017 09:30:36 +0200
4Subject: [PATCH] remove the test to convert euc-jp 4Subject: [PATCH] remove the test to convert euc-jp
5 5
6Remove the test "Test against HP-UX 11.11 bug: 6Remove the test "Test against HP-UX 11.11 bug:
@@ -13,28 +13,44 @@ Upstream-Status: Inappropriate [OE specific]
13 13
14Signed-off-by: Jackie Huang <jackie.huang@windriver.com> 14Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
15--- 15---
16 gnulib-m4/iconv.m4 | 11 ----------- 16---
17 1 files changed, 0 insertions(+), 11 deletions(-) 17 gnulib-m4/iconv.m4 | 23 -----------------------
18 1 file changed, 23 deletions(-)
18 19
19Index: libunistring-0.9.4/gnulib-m4/iconv.m4 20diff --git a/gnulib-m4/iconv.m4 b/gnulib-m4/iconv.m4
20=================================================================== 21index b33ecd0..73b6aa1 100644
21--- libunistring-0.9.4.orig/gnulib-m4/iconv.m4 2014-11-03 17:41:29.755011917 +0000 22--- a/gnulib-m4/iconv.m4
22+++ libunistring-0.9.4/gnulib-m4/iconv.m4 2014-11-03 17:43:03.795014480 +0000 23+++ b/gnulib-m4/iconv.m4
23@@ -159,17 +159,6 @@ 24@@ -165,29 +165,6 @@ AC_DEFUN([AM_ICONV_LINK],
24 } 25 }
25 } 26 }
26 #endif 27 #endif
27- /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 28- /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
28- provided. */ 29- provided. */
29- if (/* Try standardized names. */ 30- {
30- iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 31- /* Try standardized names. */
31- /* Try IRIX, OSF/1 names. */ 32- iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
32- && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 33- /* Try IRIX, OSF/1 names. */
33- /* Try AIX names. */ 34- iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
34- && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 35- /* Try AIX names. */
35- /* Try HP-UX names. */ 36- iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
36- && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 37- /* Try HP-UX names. */
37- result |= 16; 38- iconv_t cd4 = iconv_open ("utf8", "eucJP");
39- if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
40- && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
41- result |= 16;
42- if (cd1 != (iconv_t)(-1))
43- iconv_close (cd1);
44- if (cd2 != (iconv_t)(-1))
45- iconv_close (cd2);
46- if (cd3 != (iconv_t)(-1))
47- iconv_close (cd3);
48- if (cd4 != (iconv_t)(-1))
49- iconv_close (cd4);
50- }
38 return result; 51 return result;
39 }]])], 52 ]])],
40 [am_cv_func_iconv_works=yes], 53 [am_cv_func_iconv_works=yes], ,
54--
552.4.0
56