Hi, Ronnie,

About webout_eval_tag() patch, I'd got confution.
It was bad idea that importing related code from tcl-rivet.
I should make more modifies for websh.

I've read the code more carfully. And I think I found the
solution.

Current webout_eval_tag() contains following code:
        ....
        prev = cur;
        cur++
        continue;
        ....
char * cur contains the contents. It may be unicode string.
This means it may be multi-byte string not only single-byte.
So cur++ may not point next char.

I think above lines should be as following:
        ....
        prev = cur;
        cur = (char *)Tcl_UtfNext(cur);
        continue;
        ....

An attatchement is new patch against CVS-HEAD.
I think it work fine.

But I found another probrems.

Scripts under test/ are contain raw 8bit strings.
And I think there are raw 8bit unicode strings ....

It requires "encoding system utf-8".
But many system has other encoding such as iso8859-1, euc-jp,
and so on.
Such systems can not read raw 8bit unicode strings.
I think they should use \uXXXX notation.

Thanks.
Taguchi,T.
---

Attachment: tcl-websh-i18n.patch
Description: Binary data



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to