|
|
| Author |
Message |
|
| Guest |
Posted: Sat Aug 26, 2006 6:14 am |
|
|
|
Guest
|
Hello.
Playing with yaws/haxe I've found a bug: if is_string() returns `unicode',
string gets encoded into utf8; later, in encode_string() the number of
bytes in utf8-encoded string is counted, while the number of unicode
symbols is expected by haXe. So, in case of an unicode string, inverse
transformation (xmerl_ucs:from_utf8()) is needed before computing the length
of the string.
Attached is a patch fixing the bug.
--
Alexander Shatokhin
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Sat Aug 26, 2006 11:42 am |
|
|
|
Guest
|
Hi,
I tried checkin in the fix but ran into CVS problems. I'll have to
wait until they are resolved.
Best,
Yariv
On 8/26/06, Alexander Shatokhin <ash@tsi.lv> wrote:
> Hello.
>
> Playing with yaws/haxe I've found a bug: if is_string() returns `unicode',
> string gets encoded into utf8; later, in encode_string() the number of
> bytes in utf8-encoded string is counted, while the number of unicode
> symbols is expected by haXe. So, in case of an unicode string, inverse
> transformation (xmerl_ucs:from_utf8()) is needed before computing the length
> of the string.
>
> Attached is a patch fixing the bug.
>
> --
> Alexander Shatokhin
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
> _______________________________________________
> Erlyaws-list mailing list
> Erlyaws-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/erlyaws-list
>
>
>
>
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|