lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lynx-dev] Re: lynx-dev a problem of Japanese with 2.8.5pre.5 compil


From: patakuti
Subject: Re: [Lynx-dev] Re: lynx-dev a problem of Japanese with 2.8.5pre.5 compiled withncursesw
Date: Tue, 11 May 2004 23:34:47 +0900 (JST)

From: Atsuhito KOHDA <address@hidden>
Subject: Re: [Lynx-dev] Re: lynx-dev a problem of Japanese with 2.8.5pre.5
 compiled withncursesw
Date: Tue, 11 May 2004 17:24:46 +0900 (JST)

> > > I tested the above patch with my Debian GNU/Linux system
> > > but I couldn't see any improvement ;-)
> >
> > Please try again using libiconv instead of glibc's iconv.
[snip]
> Only one (but critical) problem is that installing libiconv
> in a system with glibc (like Linux) might be very hard and
> dangerous.
> 
> Isn't there any chance of a patch which could work with glibc's
> iconv?

I tested the patch on Linux today, and improved it.
Please try this additional patch, which seems to work well with
glibc's iconv and also libiconv.
--
Takeshi Hataguchi
E-mail: address@hidden

diff -ur orig/lynx2-8-5/src/UCdomap.c lynx2-8-5/src/UCdomap.c
--- orig/lynx2-8-5/src/UCdomap.c        Tue May 11 19:49:20 2004
+++ lynx2-8-5/src/UCdomap.c     Tue May 11 19:58:16 2004
@@ -981,7 +981,7 @@
            str[0] = unicode >> 8; str[1] = unicode & 0xFF; str[2] = 0;
            pin = str; inleft = 2;
            pout = outbuf, outleft = buflen;
-           cd = iconv_open(LYCharSet_UC[charset_out].MIMEname, 
"UTF-16//TRANSLIT");
+           cd = iconv_open(LYCharSet_UC[charset_out].MIMEname, 
"UTF-16BE//TRANSLIT");
            rc = iconv(cd, &pin, &inleft, &pout, &outleft);
            iconv_close(cd);
            if ((pout - outbuf) == 3) {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]