Re: GIT 1.5.0-rc2 compiler warning
- From
Robin Rosenberg <robin.rosenberg.lists@dewire.com>
- Date
- Jan 22, 2007, 20:44 UTC
- Message-ID
- <200701222144.34934.robin.rosenberg.lists@dewire.com>
- In-Reply-To
- <7vy7nvyic4.fsf@assigned-by-dhcp.cox.net>
måndag 22 januari 2007 02:13 skrev Junio C Hamano:
> I know. Imported code. > > I do not think we can do much on a platform where wchar_t is too > narrow and BMP only anyway.
What's wrong is the assumption that wchar_t corresponds to a complete unicode character. On windows, two wchar_t (code units) may me combined to encode a unicode character outside of the BMP.
Without investigating further, I note that Java adds methods with an 'int' argument to the Character utility class to handle code points, vs the original 'char' that represents a code unit. (unlike C, an int is always 32-bit in Java).
-- robin