harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Strigun" <vstri...@gmail.com>
Subject Re: [nio_char][drlvm] Strange effect on DRLVM with charsets
Date Tue, 15 May 2007 11:40:55 GMT
With the new charset encoders/decoders contributed in Harmony-3593 I
can't reproduce it. I will try to find the reason of the failure.

Thanks.
Vladimir.

On 5/15/07, Mikhail Markov <mikhail.a.markov@gmail.com> wrote:
> Hi!
>
> While investigating H-3307 I've found a strange effect on DRLVM. The
> following code:
> import java.nio.charset.Charset;
>
> public class Test {
>    public static void main(String[] args) {
>        System.out.println("print something...");
>        Charset charset = Charset.forName("ISO-8859-1");
>        charset.encode("\u3400");
>        System.out.println("print something again...");
>        System.out.println("and again...");
>    }
> }
>
> prints additional symbols after charset.encode() line at the end of messages
> in println():
> print something...
> print something again...→
> and again...→
>
> If i remove charset.encode() line then the output is ok:
> print something...
> print something again...
> and again...
>
> Another strange thing that if i remove first println line in the code above,
> the last 2 println works ok, i.e. without any additional symbols
>
> This effect is only reproducible on DRLVM. I'm not quite understand what
> happens here.
>
> Any thoughts?
>
> Thanks,
> Mikhail
>

Mime
View raw message