1 --- readpassphrase.c.orig 2009-11-07 14:51:38.000000000 -0800
2 +++ readpassphrase.c 2009-11-07 14:51:39.000000000 -0800
3 @@ -33,6 +33,8 @@ static const char rcsid[] = "$OpenBSD: r
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"
12 @@ -59,6 +61,7 @@ readpassphrase(const char *prompt, char
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). */
20 @@ -115,11 +118,11 @@ restart:
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);