This is the mail archive of the libc-locales@sourceware.org mailing list for the GNU libc locales project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug localedata/22073] charmaps/UTF-8: wcwidth of U+00AD (soft hyphen): 0 or 1 ?


https://sourceware.org/bugzilla/show_bug.cgi?id=22073

--- Comment #19 from Troy Korjuslommi <tjk at tksoft dot com> ---
I was referring to non-SHY-aware apps. When iterating through input in
curses code, one needs wcwidth() for at least two reasons. One is to
calculate space needed to display a word, and the other is to determine
the position of the cursor (only applicable when input contains 2 column
wide characters). If SHY is wcwidth other than 0, the non-SHY-aware
applications will calculate the width incorrectly.

A non-SHY-aware application could easily add the U+00AD to the terminal,
and thus possibly cause cursor movement, and maybe even character
rendering, to occur.

An author who cares about grammar would actually hyphenate theosophy as
"the-o-so-phy." That was kind of my point, that words with more than two
syllables have two or more hyphens. And that hyphenation is a rule based
system, non-obvious and hard to guess, which is why SHY can be a useful
tool.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]