diff options
| author | Jiang Xin <worldhello.net@gmail.com> | 2025-11-15 08:36:10 -0500 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-11-16 16:04:24 -0800 |
| commit | 878fef8ebf6cf513842de14284ee58f4d92fcef3 (patch) | |
| tree | 418f3dbe468f9c7e46f9202dad9c7552dab5a738 /builtin/repo.c | |
| parent | fd372d9b1a69a01a676398882bbe3840bf51fe72 (diff) | |
| download | git-878fef8ebf6cf513842de14284ee58f4d92fcef3.tar.gz | |
t/unit-tests: add UTF-8 width tests for CJK chars
The file "builtin/repo.c" uses utf8_strwidth() to calculate the display
width of UTF-8 characters in a table, but the resulting output is still
misaligned. Add test cases for both utf8_strwidth and utf8_strnwidth to
verify that they correctly compute the display width for UTF-8
characters.
Also updated the build configuration in Makefile and meson.build to
include the new test suite in the build process.
Signed-off-by: Jiang Xin <worldhello.net@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/repo.c')
0 files changed, 0 insertions, 0 deletions
