Commit 1aa1dcdf authored by ogg.k.ogg.k's avatar ogg.k.ogg.k
Browse files

do not explicitely tell Java to use US-ASCII, as JDK 1.1 does not like it

parent 94f8b4b9
......@@ -126,8 +126,7 @@ public class Info {
for (buffer_characters=0; buffer_characters<16; ++buffer_characters) {
if (buffer16[buffer_characters] == 0) break;
}
try { language = new String(buffer16, 0, buffer_characters, "US-ASCII"); }
catch (java.io.UnsupportedEncodingException e) { language = ""; }
language = new String(buffer16, 0, buffer_characters);
category = "";
buffer_characters = 0;
......@@ -137,8 +136,7 @@ public class Info {
for (buffer_characters=0; buffer_characters<16; ++buffer_characters) {
if (buffer16[buffer_characters] == 0) break;
}
try { category = new String(buffer16, 0, buffer_characters, "US-ASCII"); }
catch (java.io.UnsupportedEncodingException e) { category = ""; }
category = new String(buffer16, 0, buffer_characters);
/* end of packet */
if (opb.read(1) != -1)
......
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