Re: commit -- ugly ifdef iconv hack


Subject: Re: commit -- ugly ifdef iconv hack
From: Vlad Harchev (hvv@hippo.ru)
Date: Sun Nov 12 2000 - 02:26:44 CST


On Sun, 12 Nov 2000, Pierre Abbat wrote:

> On Sat, 11 Nov 2000, Sam TH wrote:
> >
> >Committed (in the criminal sense) a horrible ugly ifdef hack to make iconv
> >work in win32 again. Don't look, it's really painful.
>
> Guilty. Here's the evidence:
>
> (gdb) run
> Starting program: /usr/local/AbiSuite/bin/AbiWord_d
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x403bade4 in iconv (cd=0x834c8c8, inbuf=0x0, inbytesleft=0x0, outbuf=0x0,
> outbytesleft=0x0) at iconv.c:41
> 41 iconv.c: No such file or directory.
> (gdb) where
> #0 0x403bade4 in iconv (cd=0x834c8c8, inbuf=0x0, inbytesleft=0x0, outbuf=0x0,
> outbytesleft=0x0) at iconv.c:41
> #1 0x8145399 in try_UToC ()
> #2 0x814540b in XAP_EncodingManager::try_UToNative ()
> #3 0x8144eb9 in XAP_EncodingManager::UToNative ()
> #4 0x8145a15 in XAP_EncodingManager::initialize ()
> #5 0x8144def in XAP_EncodingManager::XAP_EncodingManager ()
> #6 0x813ba57 in XAP_App::XAP_App ()
> #7 0x8131ffc in XAP_UnixApp::XAP_UnixApp ()
> #8 0x809ecfb in AP_UnixApp::AP_UnixApp ()
> #9 0x80a0ae3 in AP_UnixApp::main ()
> #10 0x809ecd7 in main ()
> #11 0x403309ee in __libc_start_main (main=0x809ec84 <main>, argc=1,
> argv=0xbffffa24, init=0x809cc74 <_init>, fini=0x81ebc1c <_fini>,
> rtld_fini=0x4000a570 <_dl_fini>, stack_end=0xbffffa1c)
> at ../sysdeps/generic/libc-start.c:90
>
> The crash scene was a mess. Broken windows everywhere (X, of course), blood,
> gore, and bushes. Your hacking license is suspended for six months.

 iconv(iconv_handle,NULL,NULL,NULL,NULL) is a valid use of iconv. I suspect
that iconv stub from wv is used for some reason, rather than libiconv's one.
  
> phma
>

 Best regards,
  -Vlad



This archive was generated by hypermail 2b25 : Sun Nov 12 2000 - 02:47:33 CST