On Thu, 9 Nov 2000, Belcon Zhao wrote:

> >From: Vlad Harchev <[EMAIL PROTECTED]>
> >To: Belcon Zhao <[EMAIL PROTECTED]>
> >CC: [EMAIL PROTECTED], [EMAIL PROTECTED]
> >Subject: Re: request for help from CJK hackers
> >Date: Thu, 9 Nov 2000 15:10:02 +0400 (SAMT)
> >
> >On Thu, 9 Nov 2000, Belcon Zhao wrote:
> >
> >  Hi Belcon,
> >
> > > Hello Vlad:
> > >
> > > Yes,it works!Great work!
> >
> >  Very nice to hear that.
> >
> > > As chih-wei Huang metioned that there still is some bug with
> > > Big5 Chinese.I always test AW in GB2312.I will test Big5 on
> > > next Monday,cause I have to do something else next three days.
> >
> >  OK.
> >
> > >[...]
> > > Thanks for your explain.And I also crashed with the code your last
> > > letter metioned.But it works fine with above codes.:-)
> > > Now,our work is test in Big5.I think it is a easy work.:-)
> >
> >  Let's hope :)
> 
> As I expect,this bug is quite easy.Here is the solution(although I
> haven't test it).I will test it after I send this mail
> Just at same location of last bug,Vlad
> 
> s_RTF_ListenerWriteDoc::_outputData(const UT_UCSChar * data, UT_uint32 
> length)
> [...]
> 
> for(int i=0;i<mblen;++i) {
>         unsigned char c = mbbuf[i];
> --      if ( c > 0x007f) {
>                 FlushBuffer();
>                 m_pie->_rtf_nonascii_hex2(c);
> --      }
> --      else
> --             *pBuf++ = c;
> 
> 
> Cause the second byte of Big5 is not always bigger than 0x7f.
> While GB2312's code range is from 0xA1A1 to 0xFEFE,Big5's code
> range is:first byte,0xA1~0xFE,second byte,0x40~0x7E&&0xA1~0xFE.
> Vlad is not familiar with CJK code set.:-)

 Yes, I still don't know what Big5 and GB2312 are all about :)

 Thank you very much for spotting and fixing this, Belcon!
 
>   After this patch,I think AW will support CJK perfectly.

 Making AW not to crash on RTF files produced by Word is the only task I think
should be done.

> >
> >  Could anybody look into this?
> >
> >[...]
> > > Best regards,
> > > -Belcon
> >
> >  Best regards,
> >   -Vlad
> >
> >
> Best regards,
> -Belcon

 Thanks!

 Best regards,
  -Vlad





Reply via email to