diff options
author | Bdale Garbee <bdale@gag.com> | 2014-02-13 21:54:46 -0700 |
---|---|---|
committer | Bdale Garbee <bdale@gag.com> | 2014-02-13 21:54:46 -0700 |
commit | e77c24aaaff12669ca6970dfcca770671387f59c (patch) | |
tree | c8929f4a71290e3a3c3b6d717788ae1837b2dffa /altoslib/AltosLink.java | |
parent | 85974eadfde6103d297498ee8c4268e28ab008ba (diff) | |
parent | bf268354535a3a7b2e093235e5347ed2a6d809ff (diff) |
Merge branch 'branch-1.3' into debian
Diffstat (limited to 'altoslib/AltosLink.java')
-rw-r--r-- | altoslib/AltosLink.java | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/altoslib/AltosLink.java b/altoslib/AltosLink.java index 8346d281..97fa7062 100644 --- a/altoslib/AltosLink.java +++ b/altoslib/AltosLink.java @@ -251,13 +251,7 @@ public abstract class AltosLink implements Runnable { public void add_bytes(byte[] bytes, int len) throws InterruptedException { String line; - try { - line = new String(bytes, 0, len, "UTF-8"); - } catch (UnsupportedEncodingException ue) { - line = ""; - for (int i = 0; i < len; i++) - line = line + bytes[i]; - } + line = new String(bytes, 0, len, AltosLib.unicode_set); if (debug) System.out.printf("\t\t\t\t\t%s\n", line); add_string(line); |