zjncs opened a new issue, #5623:
URL: https://github.com/apache/rocketmq-dashboard/issues/5623

   ## Description
   
   All rmqctl tables render through `text/tabwriter` 
(`internal/output/output.go`: `Rows`, `ConfigTable`, `ToolCallSummary`), which 
pads cells to align columns **by rune count**. But terminals render East Asian 
Wide/Fullwidth runes (CJK ideographs, kana, fullwidth forms) as **two cells** — 
so whenever a cell contains Chinese/Japanese/Korean text, every following 
column in that row shifts.
   
   Reproducer on master — a two-row table where only the name differs:
   
   ```
   NAME    QUEUES
   订单主题    8        <- 4 runes = 8 display cells, tabwriter counts 4
   orders  8
   ```
   
   The QUEUES column starts at display column 12 for the CJK row but 8 for the 
ASCII row (measured by display width in the failing test).
   
   ## Impact
   
   Topic and consumer-group names in Chinese deployments are very commonly CJK 
(the console's own fixtures use them), so `rmqctl topic list`, `group list`, 
and every other table command produces visually broken columns for those rows.
   
   ## Expected behavior
   
   Pad columns to terminal **display width** (CJK wide runes counting as two 
cells) instead of rune count.
   
   ## Environment
   
   - branch: master (0228dad5)
   - files: `rmqctl/internal/output/output.go` (all three table renderers)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to