summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-05-13 11:19:26 +0000
committerache <ache@FreeBSD.org>1997-05-13 11:19:26 +0000
commite71667c20d7fe83bdfad8a8b821865ac028e99ee (patch)
treeaa10f595d01edf8cded87d2c80f7226c2b9a458a /lib/libc
parentc67b6ed92cf41abef3d58c2ab95aa585e2ee91cf (diff)
downloadFreeBSD-src-e71667c20d7fe83bdfad8a8b821865ac028e99ee.zip
FreeBSD-src-e71667c20d7fe83bdfad8a8b821865ac028e99ee.tar.gz
#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.
Diffstat (limited to 'lib/libc')
-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 a24bbb7..dbcc3e9 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,
OpenPOWER on IntegriCloud