From cd641c8853c89d8940254156d012446b7116e528 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Tue, 13 May 1997 11:19:26 +0000 Subject: [PATCH] #ifdef out C locale extension to 8859-1 encoding, it now stays to ASCII back as designed in *BSD Also it not violates current standards but 1) No other Unixes have this feature 2) It broke Kerberos5 (isprint) and God knows what else (not all vendors will agree to treat FreeBSD as special case for support since (1)) 2) Give false localization sense (programs mimic to be 8859-1 localized) which prevents true localization. --- lib/libc/locale/table.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/libc/locale/table.c b/lib/libc/locale/table.c index a24bbb70bf37..dbcc3e99c72b 100644 --- a/lib/libc/locale/table.c +++ b/lib/libc/locale/table.c @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: table.c,v 1.9 1997/02/22 14:59:57 peter Exp $ */ #if defined(LIBC_SCCS) && !defined(lint) @@ -87,6 +87,8 @@ _RuneLocale _DefaultRuneLocale = { /*78*/ _L|_R|_G|_A, _L|_R|_G|_A, _L|_R|_G|_A, _P|_R|_G, _P|_R|_G, _P|_R|_G, _P|_R|_G, _C, +#ifdef C_LOCALE_EXTEND_TO_8859_1 /* can broke some programs */ + /* Populated from ISO 8859-1, attempt to not violate POSIX/ANSI */ /*80*/ _C, _C, _C, _C, @@ -121,6 +123,7 @@ _RuneLocale _DefaultRuneLocale = { _R|_G, _R|_G, _R|_G, _P|_R|_G, /*F8*/ _R|_G, _R|_G, _R|_G, _R|_G, _R|_G, _R|_G, _R|_G, _R|_G, +#endif /* C_LOCALE_EXTEND_TO_8859_1 */ }, { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,