Subject: Re: I need some help!
From: Sam TH (sam@uchicago.edu)
Date: Thu Nov 09 2000 - 04:46:06 CST
On Thu, Nov 09, 2000 at 06:37:59PM +0800, ha shao wrote:
> On Thu, Nov 09, 2000 at 06:27:05PM +0800, hashao@china.com wrote:
> >
> > I believe it is in the file ie_exp_RTF_listenerWriteDoc.cpp,
> > at line 201:
> > for(int i=0;i<mblen;++i) {
> > unsigned char c = mbbuf[i];
> > if ( c > 0x007f)
> > m_pie->_rtf_nonascii_hex2(c);
> > else
> > *pBuf++ = c;
>
> Make the last line as:
> {
> *pBuf++ = c;
> Flushbuffer();
> }
>
> Does the job for me. :)
> Okey, lost some efficiency, maybe.
Well, I'm not really sure about this, but from looking at that code, it
would seem that *pBuf++ does not deal properly with the possibility
of writing multiple bytes for that character. I could be totally wrong on
this, not knowing anything about the CJK code, but it is a possibility.
If I'm totally wrong, just ignore me.
sam th
sam@uchicago.edu
http://www.abisource.com/~sam/
GnuPG Key:
http://pgp5.ai.mit.edu:11371/pks/lookup?op=get&search=0xCABD33FC
This archive was generated by hypermail 2b25 : Thu Nov 09 2000 - 04:46:11 CST