On Wed, Jul 27, 2005 at 02:50:06PM +0200, Micha Lenk wrote:
> Is it even not possible to prevent the user from entering non-locale
> characters? As a user I would prefer to get multiple other but legal
> characters when I enter a non-locale character, wich I am able to delete
> just after. In cases where I enter such a non-locale character by
> accident I would at least be able to correct my mistake.

There are two cases: displaying data that it reads from some other location
and data entered from the keyboard.  whiptail should of course distinguish
between the two.  If it cannot at least let you delete the keyboard entry,
that's a defect in whiptail.
 
> > The solution is to ensure such garbage characters don't get entered into
> > whiptail, etc. (or other X programs). Use a non C locale, in particular
> > use UTF-8, and make sure all programs produce UTF-8.

whiptail isn't an X program, btw.
 
-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

Attachment: pgpoyubWGgtYL.pgp
Description: PGP signature

Reply via email to