gpg2.2.3 crashes with --full-gen-key under ja_JP.UTF-8 locale.
henrich@hp:~ $ env|grep LANG
LANG=ja_JP.UTF-8
GDM_LANG=ja_JP.UTF-8
henrich@hp:~ $ gpg --full-gen-key
gpg (GnuPG) 2.2.3; Copyright (C) 2017 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.ご希望の鍵の種類を選択してください:
(1) RSA と RSA (デフォルト) (2) DSA と Elgamal (3) DSA (署名のみ) (4) RSA (署名のみ)あなたの選択は?
RSA 鍵は 1024 から 4096 ビットの長さで可能です。
鍵長は? (3072)
要求された鍵長は3072ビット
鍵の有効期限を指定してください。0 = 鍵は無期限 <n> = 鍵は n 日間で期限切れ <n>w = 鍵は n 週間で期限切れ <n>m = 鍵は n か月間で期限切れ <n>y = 鍵は n 年間で期限切れ鍵の有効期間は? (0)
gpg: signal Segmentation fault caught ... exiting
Segmentation fault
Enviroment: Debian unstable, openSUSE tumbleweed and Fedora27
Note: I've tried it under other locales as kr_KO.UTF-8 and zn_CN.UTF-8 but it doesn't crash.