From owner-cvs-src@FreeBSD.ORG Mon May 2 11:10:22 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD25516A4CE; Mon, 2 May 2005 11:10:22 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5770A43D31; Mon, 2 May 2005 11:10:22 +0000 (GMT) (envelope-from sf@FreeBSD.org) Received: from freefall.freebsd.org (sf@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j42BAMrR036977; Mon, 2 May 2005 11:10:22 GMT (envelope-from sf@freefall.freebsd.org) Received: from localhost (localhost [[UNIX: localhost]]) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j42BALe1036976; Mon, 2 May 2005 11:10:21 GMT (envelope-from sf) Date: Mon, 2 May 2005 11:10:21 GMT Message-Id: <200505021110.j42BALe1036976@freefall.freebsd.org> From: FUJISHIMA Satsuki To: Ruslan Ermilov In-Reply-To: <200502262147.j1QLls3r024384@repoman.freebsd.org> References: <200502262147.j1QLls3r024384@repoman.freebsd.org> Mail-Followup-To: Ruslan Ermilov , src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org, sf@FreeBSD.org User-Agent: Wanderlust/2.11.32 (Wonderwall) SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-8859-4?Q?Sanj=F2?=) APEL/10.6 Emacs/21.3 (i386--freebsd) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src Makefile.inc1 src/sys/sys param.h src/tools/build Makefile src/lib/libc/locale rune.c src/include Makefile runefile.h src/usr.bin/mklocale ldef.h lex.l yacc.y X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2005 11:10:23 -0000 This change broke binary compatibility with FreeBSD =< 5.x. They do not run on -CURRENT correctly when LC_CTYPE is set. Is this intentional? If so, is there any workaround? Currently Opera FreeBSD (4.6 binary) does not work in non-ASCII environment. # RELENG_4 binary does not work with LC_CTYPE but without it does. $ file /home/chroot/4/usr/bin/perl /home/chroot/4/usr/bin/perl: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 4.11 (492100), dynamically linked (uses shared libs), stripped $ env - LC_CTYPE=ja_JP.eucJP /home/chroot/4/usr/bin/perl < /dev/null perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LC_ALL = (unset), LC_CTYPE = "ja_JP.eucJP", LANG = (unset) are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). $ env - /home/chroot/4/usr/bin/perl < /dev/null # RELENG_5, same as above. $ file /home/chroot/5/usr/local/bin/perl /home/chroot/5/usr/local/bin/perl: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 5.4 (504100), dynamically linked (uses shared libs), stripped $ env - LC_CTYPE=ja_JP.eucJP /home/chroot/5/usr/local/bin/perl < /dev/null perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LC_ALL = (unset), LC_CTYPE = "ja_JP.eucJP", LANG = (unset) are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). $ env - /home/chroot/5/usr/local/bin/perl < /dev/null # Of course -CURRENT binary works. $ file /usr/local/bin/perl /usr/local/bin/perl: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 6.0 (600008), dynamically linked (uses shared libs), stripped $ env - LC_CTYPE=ja_JP.eucJP /usr/local/bin/perl < /dev/null $ env - /usr/local/bin/perl < /dev/null # copying LC_CTYPE from RELENG_5 fixes compatibility, but breaks -CURRENT binary. $ sudo cp /home/chroot/5/usr/share/locale/ja_JP.eucJP/LC_CTYPE /usr/share/locale/ja_JP.eucJP $ env - LC_CTYPE=ja_JP.eucJP /home/chroot/4/usr/bin/perl < /dev/null $ env - LC_CTYPE=ja_JP.eucJP /home/chroot/5/usr/local/bin/perl < /dev/null $ env - LC_CTYPE=ja_JP.eucJP /usr/local/bin/perl < /dev/null perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LC_ALL = (unset), LC_CTYPE = "ja_JP.eucJP", LANG = (unset) are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). $ At Sat, 26 Feb 2005 21:47:54 +0000 (UTC), Ruslan Ermilov wrote: > > ru 2005-02-26 21:47:54 UTC > > FreeBSD src repository > > Modified files: > . Makefile.inc1 > sys/sys param.h > tools/build Makefile > lib/libc/locale rune.c > include Makefile > usr.bin/mklocale ldef.h lex.l yacc.y > Added files: > include runefile.h > Log: > Make the format of LC_CTYPE files architecture independent by > introducing the disk formats for _RuneLocale and friends. > > The disk formats do not have (useless) pointers and have 32-bit > quantities instead of rune_t and long. (htonl(3) only works > with 32-bit quantities, so there's no loss). > > Bootstrap mklocale(1) when necessary. (Bootstrapping from 4.x > would be trivial (verified), but we no longer provide pre-5.3 > source upgrades and this is the first commit to actually break > it.) > > Revision Changes Path > 1.477 +5 -0 src/Makefile.inc1 > 1.233 +2 -1 src/include/Makefile > 1.1 +61 -0 src/include/runefile.h (new) > 1.13 +156 -66 src/lib/libc/locale/rune.c > 1.228 +1 -1 src/sys/sys/param.h > 1.8 +5 -0 src/tools/build/Makefile > 1.4 +7 -5 src/usr.bin/mklocale/ldef.h > 1.9 +0 -1 src/usr.bin/mklocale/lex.l > 1.24 +71 -76 src/usr.bin/mklocale/yacc.y >