bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/23637] Incorrect conversion of UTF-16 decoder


From: kaz at maczuka dot gcd dot org
Subject: [Bug classpath/23637] Incorrect conversion of UTF-16 decoder
Date: 30 Aug 2005 16:06:27 -0000

------- Additional Comments From kaz at maczuka dot gcd dot org  2005-08-30 
16:06 -------
> char c = byteOrder == BIG_ENDIAN ? (char) ((b1 << 8) | (b2 & 0xff))
>                                  : (char) ((b2 << 8) | (b1 & 0xff));

The mask should be 0x00ff instead of 0xff because 0xff == 0xffff.



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23637




reply via email to

[Prev in Thread] Current Thread [Next in Thread]