[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: UTF-8 curses
Edmund GRIMLEY EVANS writes:
> Suppose there is "AO" on the screen and I move the cursor to where the
> A is. I then call addstr() to output a single "U". I then call
> addstr() again to output a single combining umlaut. The umlaut goes
> onto the O and the final state is "UÖ" (U followed by O-umlaut). Is
> that right?
>
> But if I had concatenated the two strings and done a single call to
> addstr() the result would have been "ÜO" (U-umlaut followed by O).
For the second one, I agree with your understanding. The doc for
addstr refers to the one for addwstr, and that one indicates that the
wchar_t's are converted to cchar_t's (complex characters which, as
described, combine 1 spacing character with a number of non-spacing
ones). In Unicode, the non-spacing characters come after the
non-spacing one in the string.
For the first one, the doc about add_wch is questionable. It contains
the sentence "If wch refers to a non-spacing character ...", but a
"complex character" by definition cannot refer to a single non-spacing
character.
Bruno
-
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/lists/