You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
format.abc.Writer outputs the number of characters instead of the number of bytes when writing strings. This causes errors when outputting special characters. The following code fixes the problem:
class ABCWriter extends format.abc.Writer {
override function writeString( s : String ) {
var encoding = null;
#if neko
var b = untyped new Bytes(s.length,s.__s);
#else
var b = Bytes.ofString(s, encoding);
#end
writeInt(b.length);
o.writeFullBytes(b,0,b.length);
}
}
The text was updated successfully, but these errors were encountered:
format.abc.Writer outputs the number of characters instead of the number of bytes when writing strings. This causes errors when outputting special characters. The following code fixes the problem:
The text was updated successfully, but these errors were encountered: