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

Re: [PATCH v2] fetch: align new ref summary printout in UTF-8 locales

From
Torsten Bögershausen <tboegi@web.de>
Date
Sep 6, 2012, 16:21 UTC
Message-ID
<B268CEF3-88A6-49B0-8AE7-7C06EDAE7CEF@web.de>
In-Reply-To
<CACsJy8D3VyFk+0PTeeXTN-Js9x7p+a+2vW+trry8-6q+9=m2xg@mail.gmail.com>
Am 06.09.2012 um 17:36 schrieb Nguyen Thai Ngoc Duy:
Show 11 quoted lines
> On Thu, Sep 6, 2012 at 2:20 AM, Torsten Bögershausen <tboegi@web.de> wrote:
>>> Will that work for non-ASCII encodings?
>>> For ISO-8859-x we can say strlen() == strwidth(),
>>> but for other encodings using multibytes that doesn't work, does it?
> 
> BTW if you are interested in supporting non-utf8 output, you may want
> to look at 1452bd6 (branch -v: align even when branch names are in
> UTF-8 - 2012-08-26), which assumes branches are in utf-8. So you have
> to convert them to output charset before printing.
> -- 
> Duy

Thanks, I try to re-phrase my question:

Do installations still exist which use e.g. BIG5 or any other multi byte encoding which is not UTF-8?

Do we want to support other encodings than ASCII or UTF-8? (Because then the screen width needs to be calculate different, I think)

/Torsten
Previous: Nguyen Thai Ngoc DuyNext: Junio C Hamano
Message 13 of 14 in “fetch: align new ref summary printout in UTF-8 locales”
  1. fetch: align new ref summary printout in UTF-8 localesNguyễn Thái Ngọc Duy, Sep 3, 2012
  2. Junio C HamanoSep 3, 2012
  3. Johannes SixtSep 3, 2012
  4. Junio C HamanoSep 3, 2012
  5. Nguyen Thai Ngoc DuySep 4, 2012
  6. fetch: align new ref summary printout in UTF-8 localesNguyễn Thái Ngọc Duy, Sep 4, 2012
  7. Nguyen Thai Ngoc DuySep 12, 2012
  8. Junio C HamanoSep 12, 2012
  9. Torsten BögershausenSep 12, 2012
  10. Torsten BögershausenSep 5, 2012
  11. Nguyen Thai Ngoc DuySep 6, 2012
  12. Nguyen Thai Ngoc DuySep 6, 2012
  13. Torsten BögershausenSep 6, 2012
  14. Junio C HamanoSep 6, 2012

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.