git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
 
Previous: Junio C Hamano
Message 3 of 3 in “GIT 1.5.0-rc2 compiler warning”
  1. SungHyun NamJan 22, 2007
  2. Junio C HamanoJan 22, 2007
  3. Robin RosenbergJan 22, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.