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

Re: [PATCH 2/2] builtin/repo: fix table alignment for UTF-8 characters

From
Jiang Xin <worldhello.net@gmail.com>
Date
Nov 15, 2025, 12:54 UTC
Message-ID
<CANYiYbEFN9BHtNh1PQ9C3gDJasq1PaKnkcH-Nq=FddUCAcMGqg@mail.gmail.com>
In-Reply-To
<xmqqa50oiduy.fsf@gitster.g>
On Sat, Nov 15, 2025 at 4:00 AM Junio C Hamano <gitster@pobox.com> wrote:
Show 6 quoted lines
>
> Jiang Xin <worldhello.net@gmail.com> writes:
>
> Not about the contents of the patch, but how was the list of
> addresses on CC produced?  Do they all have enough stakes in the
> code being updated that they do not mind getting spammed like this?

I’m cc’ing this patch series to all Git l10n team leads to inform them that the issue has been identified and will be fixed.

> Also, you had a non-address "Gemini <noreply@developers.google.com>",
> which forced me and anybody who will respond to the patch edit Cc
> address list (or suffer bounces).  Please don't.
Will remove this trailer.
Show 6 quoted lines
> >     |     * 提交   |  279 |
> >     |     * 树      |  740 |
> >     |     * 数据对象 | 1168 |
> >     |     * 标签   |   30 |
>
> As there is a concrete reproduction sample from a specific tool, ...

This output of the `git repo structure` command is based on the Chinese translation for Git 2.52. The next reroll will retain only the table header, which is sufficient to demonstrate the issue.

Show 6 quoted lines
>
> >  builtin/repo.c | 22 ++++++++++++++++++----
> >  1 file changed, 18 insertions(+), 4 deletions(-)
>
> ... it is a good idea to protect the change with a new test or two
> to make sure the expected alignment in the output.

Will add test cases for strbuf_utf8_align(), a function newly introduced in builtin/repo.c.

Previous: Junio C HamanoNext: Junio C Hamano
Message 9 of 22 in “Fix misaligned output of git repo structure”
  1. 0/2 Fix misaligned output of git repo structureJiang Xin, Nov 14, 2025
  2. 1/2 t/unit-tests: add UTF-8 width tests for CJK charsJiang Xin, Nov 14, 2025
  3. Junio C HamanoNov 14, 2025
  4. Jiang XinNov 15, 2025
  5. 2/2 builtin/repo: fix table alignment for UTF-8 charactersJiang Xin, Nov 14, 2025
  6. Justin ToblerNov 14, 2025
  7. Jiang XinNov 15, 2025
  8. Junio C HamanoNov 14, 2025
  9. Jiang XinNov 15, 2025
  10. Junio C HamanoNov 15, 2025
  11. Jiang XinNov 16, 2025
  12. Junio C HamanoNov 16, 2025
  13. Kristoffer HaugsbakkNov 14, 2025
  14. Jiang XinNov 14, 2025
  15. Junio C HamanoNov 14, 2025
  16. Jiang XinNov 15, 2025
  17. Junio C HamanoNov 14, 2025
  18. 0/2 Fix misaligned output of git repo structureJiang Xin, Nov 15, 2025
  19. 1/2 t/unit-tests: add UTF-8 width tests for CJK charsJiang Xin, Nov 15, 2025
  20. 2/2 builtin/repo: fix table alignment for UTF-8 charactersJiang Xin, Nov 15, 2025
  21. Phillip WoodNov 15, 2025
  22. Junio C HamanoNov 15, 2025

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.