Home GnuPG

curses: Fix calculation of columns for CJK text.

Description

curses: Fix calculation of columns for CJK text.

* pinentry/pinentry-curses.c (STRWIDTH): New.
(collect_line): Let return value for columns width.
LEN minus one.
(dialog_create): Calculate for the columns with STRWIDTH.
  • GnuPG-bug-id: T4598
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Jul 9 2019, 7:20 AM
Parents
rPf6e84ce0a34c: tty: Confirmation is not by line edit mode.
Branches
Unknown
Tags
Unknown
Tasks
T4598: curses: dialog broken with wide characters