Re: request for help from CJK hackers


Subject: Re: request for help from CJK hackers
From: ha shao (hashao@china.com)
Date: Thu Nov 09 2000 - 02:45:30 CST


On Thu, Nov 09, 2000 at 08:21:42AM +0000, belcon@hotmail.com wrote:
>
> >Index: xap_EncodingManager.cpp
> >===================================================================
> >RCS file: /cvsroot/abi/src/af/xap/xp/xap_EncodingManager.cpp,v
> >retrieving revision 1.12
> >diff -u -r1.12 xap_EncodingManager.cpp
> >--- xap_EncodingManager.cpp 2000/11/06 02:27:52 1.12
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

> >+++ xap_EncodingManager.cpp 2000/11/09 08:07:47
> >@@ -453,8 +453,8 @@
> > {
> > /*key, value*/
> > {NULL,NULL},
> >- {"CP936","BIG5"}, /* most probably it's correct - VH*/
> >- {"CP950","GB2312"}, /* 100% correct */
> >+ {"CP950","BIG5"}, /* most probably it's correct - VH*/
> >+ {"CP936","GB2312"}, /* 100% correct */
> > {NULL,NULL}
> > };
> >
> As I remember,Vlad have already fixed this bug.
> Maybe you need download the latest AW's CVS version.:-)

I made the diff from cvs. Maybe Vlad's patch is not committed. :(

Anyway, with the following patch, above patch make it works well
with .rtf files generated from win2k wordpad (sample attached).

Index: ie_imp_RTF.cpp
===================================================================
RCS file: /cvsroot/abi/src/wp/impexp/xp/ie_imp_RTF.cpp,v
retrieving revision 1.30
diff -u -r1.30 ie_imp_RTF.cpp
--- ie_imp_RTF.cpp 2000/11/01 02:23:28 1.30
+++ ie_imp_RTF.cpp 2000/11/09 08:42:03
@@ -791,6 +791,10 @@
                {
                        return ParseChar(UCS_LF);
                }
+ else if (strcmp((char*)pKeyword, "lang") == 0)
+ {
+ m_mbtowc.setInCharset(XAP_EncodingManager::instance->charsetFromCodepage((UT_uint32)param));
+ }
                break;
        case 'o':
                if (strcmp((char*)pKeyword,"ol") == 0)




This archive was generated by hypermail 2b25 : Thu Nov 09 2000 - 02:45:35 CST