1 |
So, gnome-extra/gal-0.19 fails to merge due to ./configure failing with : |
2 |
|
3 |
[ ... ] |
4 |
checking for catalogs to be installed... az ca cs da de en_GB es fi fr gl |
5 |
hu it ja ko lt nn no pl pt pt_BR ro ru sk sv ta tr uk zh_TW |
6 |
sed: can't read ./intl/po2tbl.sed.in: No such file or directory |
7 |
checking for libxml (aka gnome-xml) libraries 1.8.8 <= version < 2.0.0... |
8 |
found |
9 |
checking for iconv in -liconv... no |
10 |
checking for iconv... yes |
11 |
checking for gnu_get_libc_version... yes |
12 |
checking if iconv() handles UTF-8... no |
13 |
configure: error: You need to install a working iconv implementation, such |
14 |
as http://clisp.cons.org/~haible/packages-libiconv.html |
15 |
[ ... ] |
16 |
|
17 |
in config.log |
18 |
|
19 |
#include <string.h> |
20 |
#ifdef HAVE_GNU_GET_LIBC_VERSION |
21 |
#include <gnu/libc-version.h> |
22 |
#endif |
23 |
|
24 |
int main (int argc, char **argv) |
25 |
{ |
26 |
const char *jp = "\x1B\x24\x42\x46\x7C\x4B\x5C\x38\x6C"; |
27 |
const char *utf8 = "\xE6\x97\xA5\xE6\x9C\xAC\xE8\xAA\x9E"; |
28 |
char *transbuf = malloc (10), *trans = transbuf; |
29 |
iconv_t cd; |
30 |
size_t jp_len = strlen (jp), utf8_len = 10; |
31 |
size_t utf8_real_len = strlen (utf8); |
32 |
|
33 |
#ifdef HAVE_GNU_GET_LIBC_VERSION |
34 |
/* glibc 2.1.2's iconv is broken in hard to test ways. */ |
35 |
if (!strcmp (gnu_get_libc_version (), "2.1.2")) |
36 |
exit (1); |
37 |
#endif |
38 |
|
39 |
cd = iconv_open ("UTF-8", "ISO-2022-JP"); |
40 |
if (!cd) |
41 |
exit (1); |
42 |
if (iconv (cd, &jp, &jp_len, &trans, &utf8_len) == -1 || jp_len != 0) |
43 |
exit (1); |
44 |
if (memcmp (utf8, transbuf, utf8_real_len) != 0) |
45 |
exit (1); |
46 |
|
47 |
exit (0); |
48 |
} |
49 |
|
50 |
So at first I was looking into UTF-8 problems, but it appears, that since |
51 |
% iconv -l |
52 |
produces 'UTF-8', BUT NOT 'ISO-2022-JP' that the lack of iconv charset |
53 |
support for JP specifically, but many others actually, is at issue. |
54 |
|
55 |
The tricky bit is that % iconv -l on my x86 box produces quite a lot of |
56 |
output -- maybe 4 times. Of course, the glibc ebuilds are identical -- |
57 |
with the exception that my x86 glibc was built during a system upgrade and |
58 |
not build time. |
59 |
|
60 |
So to test a simple case, could someone who has rebuilt glibc via a portage |
61 |
upgrade post their output from % iconv -l? |
62 |
|
63 |
thx. |
64 |
Gontran |