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

Re: [PATCH] utf8: add utf8_strwidth()

From
Jeff King <peff@peff.net>
Date
Jan 31, 2009, 07:17 UTC
Message-ID
<20090131071711.GA3710@coredump.intra.peff.net>
In-Reply-To
<1233308489-2656-1-git-send-email-geofft@mit.edu>
On Fri, Jan 30, 2009 at 04:41:28AM -0500, Geoffrey Thomas wrote:
> I'm about to use this pattern more than once, so make it a common function.

I know next to nothing about our encoding functions, but this seems suspiciously similar to utf8_width in utf8.c. There is also a git_wcwidth, but I don't know how they relate.

-Peff
Previous: Jeff KingNext: Geoffrey Thomas
Message 11 of 13 in “utf8: add utf8_strwidth()”
  1. utf8: add utf8_strwidth()Geoffrey Thomas, Jan 30, 2009
  2. builtin-blame.c: Use utf8_strwidth for author's namesGeoffrey Thomas, Jan 30, 2009
  3. Johannes SchindelinJan 30, 2009
  4. Geoffrey ThomasJan 30, 2009
  5. Jeff KingJan 31, 2009
  6. Johannes SchindelinFeb 1, 2009
  7. Junio C HamanoFeb 2, 2009
  8. Johannes SchindelinFeb 2, 2009
  9. Junio C HamanoFeb 3, 2009
  10. Jeff KingFeb 2, 2009
  11. Jeff KingJan 31, 2009
  12. Geoffrey ThomasJan 31, 2009
  13. Jeff KingJan 31, 2009

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.