Re: final bits for CJK patch


Subject: Re: final bits for CJK patch
From: Vlad Harchev (hvv@hippo.ru)
Date: Fri Nov 10 2000 - 04:10:50 CST


On Fri, 10 Nov 2000, Chih-Wei Huang wrote:

 Hi,

> Vlad Harchev ¼g¹D¡G
> >
> > In fact, I sent the same old version of that patch with this letter. Sorry.
> > Here is a correct version (with those ut_*.cpp bits), and also it adds 136 as
> > value \fcharset for BIG5 docs.
>
> Hmmm... I just test your p3 patch but no lucky!
>
> When I try to save document containing Chinese character(only one)
> as RTF, AW crashed immediately and silently.

 Could you send me backtrace (or better, debug the problem and suggest a fix)?
 Most probably UT_Wctomb was using wrong charset name when opening icon_t. But
which one?

> It left an half-saved file as
>
> {\rtf1\ansi\ansicpg950\deff0
> {\fonttbl
> {\f0\fnil\fcharset136\fprq0\fttruetype Times New Roman;}}
> {\colortbl
> \red0\green0\blue0;}
> \kerning0\cf0\viewkind1\paperw12240\paperh15840\margl1440\margr1440\widowctl
> \sectd\sbknone\colsx360
> \pard{\f0
>
>
> I also test in zh_CN.GB2312 locale, it crashed as zh_TW.Big5.
> The half-saved file:
>
> {\rtf1\ansi\ansicpg950\deff0 <-- why cpg950? should be cpg936

 I will fix it.

> {\fonttbl
> {\f0\fnil\fcharset134\fprq0\fttruetype Times New Roman;}}
> {\colortbl
> \red0\green0\blue0;}
> \kerning0\cf0\viewkind1\paperw12240\paperh15840\margl1440\margr1440\widowctl
> \sectd\sbknone\colsx360
> \pard{\f0
>
>
> BTW, in this patch, you use
>
> + {"0x404","zh_CN.BIG5"},
> + {"0x804","zh_CN.GB2312"},
> + {"0x404","zh_TW.BIG5"},
> + {"0x804","zh_TW.GB2312"},
>
> However, we use zh_TW.Big5 as our official locale name.
> Does it matter?

 No, all tables are searched case-insensitive, so it doesn't matter.

> In glibc 2.2, it always normalized encoding name
> of locale to lowercase, i.e., zh_TW.big5,
> In fact, the following locale names are all accepted
> by glibc 2.2: zh_TW, zh_TW.Big5, zh_TW.big5.

 Thanks for report.
>
>
> --
> ~ Chih-Wei Huang (cwhuang)
> 'v' E-Mail : cwhuang@linux.org.tw
> // \\ CLDP Project : http://www.linux.org.tw/CLDP/ (Coordinator)
> /( )\ CLE Project : http://cle.linux.org.tw/CLE/ (Developer)
> ^`~'^ HomePage : http://www.cwhuang.idv.tw/
>

 Best regards,
  -Vlad



This archive was generated by hypermail 2b25 : Fri Nov 10 2000 - 04:30:17 CST