Ticket #3262 (closed enhancement: fixed)
Inconsistent "char_width" usage in source
|Reported by:||egmont||Owned by:|
|Branch state:||no branch||Votes for changeset:|
In the source code, "char_width" or "cw" usually (especially in the viewer and editor) refers to the UTF-8 encoded byte length, while sometimes (e.g. strutilutf8.c str_utf8_term_char_width()) to the number of the character cells occupied in the terminal.
The former usage is incorrect, misleading, makes it harder to read/write source code. It should be search/replaced to byte_length or something similar. The word "width" should always refer to the number of character cells occupied by the Unicode codepoint, never to the number of bytes required to encode it.
- Blocked By 3265 added
- Milestone changed from Future Releases to 4.8.14