bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#64420: string-width of … is 2 in CJK environments


From: Dmitry Gutov
Subject: bug#64420: string-width of … is 2 in CJK environments
Date: Sun, 2 Jul 2023 15:57:07 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0

Hi! This was reported to company-mode (https://github.com/company-mode/company-mode/issues/1388), as a scenario that makes the overlay-based completion popup misrender because the columns are not computed right when that char is present.

To repro:

  (set-language-environment "Chinese-BIG5")
  (string-width "…") ;; => 2

In the default language environment its width is reported to be 1.

This doesn't seem to make sense because it's rendered one column wide either way.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]