1 --- readpassphrase.c.orig 2003-05-20 15:21:02.000000000 -0700
2 +++ readpassphrase.c 2005-02-24 17:00:36.000000000 -0800
5 __FBSDID("$FreeBSD: src/lib/libc/gen/readpassphrase.c,v 1.6 2002/03/09 03:16:41 green Exp $");
7 +#include "xlocale_private.h"
13 struct termios term, oterm;
14 struct sigaction sa, saveint, savehup, savequit, saveterm;
15 struct sigaction savetstp, savettin, savettou;
16 + locale_t loc = __current_locale();
18 /* I suppose we could alloc on demand in this case (XXX). */
22 if ((flags & RPP_SEVENBIT))
25 + if (isalpha_l(ch, loc)) {
26 if ((flags & RPP_FORCELOWER))
28 + ch = tolower_l(ch, loc);
29 if ((flags & RPP_FORCEUPPER))
31 + ch = toupper_l(ch, loc);