jsr356-experts@websocket-spec.java.net

[jsr356-experts] UTF-8 decoding issues

From: Mark Thomas <mark_at_homeinbox.net>
Date: Tue, 05 Mar 2013 14:23:04 +0000

All,

Slightly off-topic but in implementing WebSocket and running Autobahn
against my implementation I have hit a number of issues with the UTF-8
decoder provided by the JRE. Has anyone else hit these issues?

I have a test case that highlights the issues[1] that can be summarised
as a) not detecting errors early enough and b) swallowing too many bytes
when an error is detected (possibly as a consequence of a)

I'm planning on raising a bug with Oracle but wanted to see how
wide-spread the problem was before I did so.

Mark

[1]
http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/tomcat/util/buf/TestUtf8.java?view=markup