[PATCH] ncursesw support for pinentry-curses

Daiki Ueno ueno at unixuser.org
Thu Jul 30 05:07:40 CEST 2009


Hi,

Currently pinentry-curses cannot handle multibyte characters and
messages from gpg-agent are garbled under multibyte locales (such as
ja_JP.UTF-8).

For example:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pinentry-ncursesw-before.png
Type: image/png
Size: 8963 bytes
Desc: not available
URL: </pipermail/attachments/20090730/045cef83/attachment-0002.png>
-------------- next part --------------

The attached patch addresses this issue with the help of ncursesw.  With
this patch, the message in the above example will be rendered correctly:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pinentry-ncursesw-after.png
Type: image/png
Size: 9709 bytes
Desc: not available
URL: </pipermail/attachments/20090730/045cef83/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pinentry-ncursesw.diff
Type: text/x-diff
Size: 11109 bytes
Desc: not available
URL: </pipermail/attachments/20090730/045cef83/attachment-0001.diff>
-------------- next part --------------

Regards,
-- 
Daiki Ueno


More information about the Gnupg-devel mailing list