From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5497 invoked from network); 22 Sep 2006 19:26:00 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.5 (2006-08-29) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 22 Sep 2006 19:26:00 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 60630 invoked from network); 22 Sep 2006 19:25:54 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 22 Sep 2006 19:25:54 -0000 Received: (qmail 26191 invoked by alias); 22 Sep 2006 19:25:51 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22758 Received: (qmail 26180 invoked from network); 22 Sep 2006 19:25:50 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 22 Sep 2006 19:25:50 -0000 Received: (qmail 60333 invoked from network); 22 Sep 2006 19:25:50 -0000 Received: from flock1.newmail.ru (80.68.241.157) by a.mx.sunsite.dk with SMTP; 22 Sep 2006 19:25:49 -0000 Received: (qmail 27831 invoked from network); 22 Sep 2006 19:25:47 -0000 Received: from unknown (HELO cooker.local) (arvidjaar@newmail.ru@85.140.243.53) by smtpd.newmail.ru with SMTP; 22 Sep 2006 19:25:47 -0000 From: Andrey Borzenkov To: zsh-workers@sunsite.dk Subject: PATCH: fix tests under non-usual locale Date: Fri, 22 Sep 2006 23:25:45 +0400 User-Agent: KMail/1.9.4 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200609222325.46459.arvidjaar@newmail.ru> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 this is rather long standing. I do not see any easier way to fix it. Index: Test/A06assign.ztst =================================================================== RCS file: /cvsroot/zsh/zsh/Test/A06assign.ztst,v retrieving revision 1.3 diff -u -p -r1.3 A06assign.ztst - --- Test/A06assign.ztst 2 Feb 2005 17:03:51 -0000 1.3 +++ Test/A06assign.ztst 22 Sep 2006 19:23:40 -0000 @@ -55,6 +55,13 @@ (( i == 30 )) 0:add to integer +# According to official printf info page: +# A floating-point argument must use a period before any fractional +# digits, but is printed according to the `LC_NUMERIC' category of the +# current locale. +# So, force LC_ALL to be C (otherwise it overrides LC_NUMERIC) + + LC_ALL=C LC_NUMERIC=C float f=3.4 f+=2.3 printf "%g\n" f Index: Test/B03print.ztst =================================================================== RCS file: /cvsroot/zsh/zsh/Test/B03print.ztst,v retrieving revision 1.14 diff -u -p -r1.14 B03print.ztst - --- Test/B03print.ztst 9 Aug 2005 00:32:58 -0000 1.14 +++ Test/B03print.ztst 22 Sep 2006 19:23:40 -0000 @@ -76,6 +76,8 @@ >123 678 >90 0 +# See A06assign for full explanation + LC_ALL=C LC_NUMERIC=C printf '%g %g\n' 123.45 678 90.1 0:test g format specifier >123.45 678 Index: Test/E01options.ztst =================================================================== RCS file: /cvsroot/zsh/zsh/Test/E01options.ztst,v retrieving revision 1.14 diff -u -p -r1.14 E01options.ztst - --- Test/E01options.ztst 8 Aug 2005 17:20:12 -0000 1.14 +++ Test/E01options.ztst 22 Sep 2006 19:23:41 -0000 @@ -195,6 +195,8 @@ >8#21 >023 + # now-a-days cd can easily be localized. Force default (POSIX) locale + LC_ALL=C LC_MESSAGES=C setopt cdablevars # only absolute paths are eligible for ~-expansion cdablevar1=tmpcd @@ -207,8 +209,8 @@ cd cdablevar2 1q:CDABLE_VARS option >back in options.tmp - -?(eval):cd:4: no such file or directory: cdablevar1 - -?(eval):cd:10: no such file or directory: cdablevar2 +?(eval):cd:6: no such file or directory: cdablevar1 +?(eval):cd:12: no such file or directory: cdablevar2 # CHASE_DOTS should go with CHASE_LINKS in B01cd.ztst # which saves me having to write it here. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFFFDi6R6LMutpd94wRArkYAJ47A6RnSZrG2bjDUbEDxirCU8w3YwCguaDN JGJqphYz75Yk3i8lq5BjvLk= =u0T8 -----END PGP SIGNATURE-----