Version: <= 4.4-alpha

In bash's `help.def' builtin, wdispcolumn() is used to display `help'
columns. It terminates the string at wcstr[width - 1], with a comment
that assmues each wide character to be exactly one column wide.

This works fine with most languages where widechars are, actually, one
column wide. But with East Asian languages, more specifically Chinese,
Japanese & Korean, it would produce terrible results.

Maybe bash should consult wcswidth(wcstr+1,displen), or get the `len' in
wcsnwidth() changed to some additional int* argument to store it, and
consider the the difference between the real width and displen.

-- 
Regards,
Arthur2e5 (0x222D7BDA)


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to