Ticket #20 (closed defect: fixed)

Opened 3 months ago

Last modified 8 weeks ago

BytesToUTF8 has incorrect behavior when buffer contains incomplete code point

Reported by: frank Owned by:
Priority: major Milestone:
Component: Orbited JavaScript Version: Orbited 0.6.0
Keywords: Cc:

Description

rgl says: http://orbited.org/browser/branches/0.5/daemon/orbited/static/protocols/stomp/stomp.js#L21 does not seem to work when a unicode code point is a multi-byte one and we receive them in multiple calls; I think the translation from bytes to unicode should be made after we detect the end of headers and the end of frames.

Attachments

Change History

Changed 8 weeks ago by heyadayo

  • status changed from new to closed
  • version changed from Orbited 0.5.0 to Orbited 0.6.0
  • resolution set to fixed

Solved in 0.6.0 (somewhere between r470-491)

function names are now Orbited.utf8.toUtf8 and Orbited.utf8.fromUtf8

Add/Change #20 (BytesToUTF8 has incorrect behavior when buffer contains incomplete code point)

Author



Change Properties
<Author field>
Action
as closed
 
Note: See TracTickets for help on using tickets.