harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deven You <devyo...@gmail.com>
Subject Re: UTF-8 decode broken for supplementary characters?
Date Wed, 01 Sep 2010 09:43:20 GMT
I have run the test on Linux, and got the same error. Seems it is due to our
UTF-8 decoder. I will do more debugging to narrow down the root cause. Any
one is familiar with UTF-8? I hope I can get some help.

2010/9/1 Robert Muir <rcmuir@gmail.com>

> Here is a simple roundtrip test that fails:
>
>  public void testUTF8() throws Exception {
>    // U+1D11E: MUSICAL SYMBOL G CLEF
>    String s = new StringBuilder().appendCodePoint(0x1D11E).toString();
>    byte utf8[] = s.getBytes("UTF-8");
>    assertEquals(s, new String(utf8, 0, utf8.length, "UTF-8"));
>  }
>
> Any ideas? It seems the problems only involve supplementary characters.
>
> Apache Harmony Launcher : (c) Copyright 1991, 2010 The Apache Software
> Foundation or its licensors, as applicable.
> java version "1.5.0"
> Apache Harmony (1.5.0)
> DRLVM (1.5.0-r946978)
> pre-alpha : not complete or compatible
> svn = r946978, (May 22 2010), Windows/ia32/msvc 1310, release build
> http://harmony.apache.org
>
> --
> Robert Muir
> rcmuir@gmail.com
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message