Commit a1c330b1 authored by petter's avatar petter

Bugfix: umlaut in string triggers buggy string to byte encoding!

git-svn-id: https://www2.in.tum.de/repos/ttt/trunk@170 0463f305-d864-43cb-8a47-61cf597d4139
parent 69bac921
......@@ -968,8 +968,10 @@ public class Recording extends MessageProducerAdapter implements Runnable,
out.writeByte(0); // padding
out.writeByte(0);
out.writeByte(0);
out.writeInt(prefs.name.length()+1);//getBytes() is Null-terminated!!!!
out.write(prefs.name.getBytes());
byte[] temp = prefs.name.getBytes();
out.writeInt(temp.length);// we need to query the length of the byte array instead of the pure size of
// the string, as some chars are encoded with several bytes
out.write(temp);
}
// ///////////////////////////////////////
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment