[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] RFC: patch for Unicode scalar value to UTF-16 conversion
From: |
Chris Burdess |
Subject: |
[cp-patches] RFC: patch for Unicode scalar value to UTF-16 conversion |
Date: |
Sat, 7 Jan 2006 21:08:34 +0000 |
User-agent: |
Mutt/1.5.10i |
There is currently a problem with Character.toChars whereby the high char
of the UTF-16 surrogate pair is incorrectly generated. This patch fixes the
problem, ensuring that the output is correct, but it uses the algorithm
proposed by the Unicode spec to generate the surrogate pair and may
therefore not be optimally efficient.
I haven't committed this, I'd just like to solicit some feedback about it.
Please comment.
--
Chris Burdess
"They that can give up essential liberty to obtain a little safety
deserve neither liberty nor safety." - Benjamin Franklin
patch
Description: Text document
pgpVgzwqsMrYd.pgp
Description: PGP signature
- [cp-patches] RFC: patch for Unicode scalar value to UTF-16 conversion,
Chris Burdess <=