aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1997-05-13 11:19:26 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1997-05-13 11:19:26 +0000
commitcd641c8853c89d8940254156d012446b7116e528 (patch)
tree80a68773d9b08b7955ec6920a6566683aaf67a2c
parent7fb149d558f11dd70a87a0f6f6bfd818df7a46f7 (diff)
downloadsrc-cd641c8853c89d8940254156d012446b7116e528.tar.gz
src-cd641c8853c89d8940254156d012446b7116e528.zip
#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.
Notes
Notes: svn path=/head/; revision=25776
-rw-r--r--lib/libc/locale/table.c5
1 files changed, 4 insertions, 1 deletions
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,