Whamcloud - gitweb
mke2fs: accept the english yes character to the proceed question
authorTheodore Ts'o <tytso@mit.edu>
Mon, 27 May 2019 23:36:15 +0000 (19:36 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 27 May 2019 23:36:15 +0000 (19:36 -0400)
commit0e0dad426a9f74ccd764071e6710084fc1a2cd31
tree0bc891298ea8470cf135d698d1a23eb63cb2a265
parentb6ee243576ce64180442d340df4ef8a2953bba72
mke2fs: accept the english yes character to the proceed question

In some cases if the translation file is missing some translations,
mke2fs can end up printing an English message, e.g.:

% LANG=it_IT.UTF-8 ./mke2fs /tmp/foo.img 8M
mke2fs 1.45.1 (12-May-2019)
/tmp/foo.img contiene un file system ext4
created on Mon May 27 19:35:48 2019
Proceed anyway? (y,N)

However, if there is a translation for string to match with "yY"
(e.g., to "sS" for Italian), then 'y' won't work.  Fix this by falling
back to the english 'yY' characters.

Addresses-Debian-Bug: #907034
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/util.c