From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12565 invoked from network); 26 Apr 2009 17:18:40 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 26 Apr 2009 17:18:40 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 92197 invoked from network); 26 Apr 2009 17:18:34 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 26 Apr 2009 17:18:34 -0000 Received: (qmail 15219 invoked by alias); 26 Apr 2009 17:18:29 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26883 Received: (qmail 15206 invoked from network); 26 Apr 2009 17:18:29 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 26 Apr 2009 17:18:29 -0000 Received: from sdf.lonestar.org (mx.freeshell.org [192.94.73.19]) by bifrost.dotsrc.org (Postfix) with ESMTPS id DD2368028C71 for ; Sun, 26 Apr 2009 19:16:39 +0200 (CEST) Received: from sdf.lonestar.org (IDENT:pda@otaku.freeshell.org [192.94.73.2]) by sdf.lonestar.org (8.14.3/8.13.8) with ESMTP id n3QHIM9I001096 for ; Sun, 26 Apr 2009 17:18:22 GMT Received: (from pda@localhost) by sdf.lonestar.org (8.14.3/8.12.8/Submit) id n3QHILD5022034 for zsh-workers@sunsite.dk; Sun, 26 Apr 2009 17:18:21 GMT From: Paul Ackersviller Date: Sun, 26 Apr 2009 17:18:21 +0000 To: zsh-workers@sunsite.dk Subject: PATCH: Enable D07multibyte.ztst for locales ending in .utf8 Message-ID: <20090426171821.GA28369@otaku> Mail-Followup-To: zsh-workers@sunsite.dk Mime-Version: 1.0 Content-Type: text/plain; charset=unknown-8bit Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV 0.92.1/9291/Sun Apr 26 08:44:09 2009 on bifrost X-Virus-Status: Clean I had closer look at why Test/D07multibyte.ztst was being skipped on HP-UX 11.11, I guess it was just too obvious to spot sooner. The locale on the system is en_US.utf8, but that name was being transformed before use. Unfortunately NetBSD's problem isn't the same, so that's still to debug. Either line modified in the following path is sufficient to get the test running, take your pick if you want either or both. Index: Test/D07multibyte.ztst =================================================================== RCS file: /cvsroot/zsh/zsh/Test/D07multibyte.ztst,v retrieving revision 1.29 diff -u -r1.29 D07multibyte.ztst --- Test/D07multibyte.ztst 10 Mar 2009 11:12:03 -0000 1.29 +++ Test/D07multibyte.ztst 26 Apr 2009 17:03:39 -0000 @@ -5,8 +5,8 @@ # Don't let LC_* override our choice of locale. unset -m LC_\* mb_ok= - langs=(en_US.UTF-8 en_GB.UTF-8 en.UTF-8 - $(locale -a 2>/dev/null | sed -e 's/utf8/UTF-8/' | grep UTF-8)) + langs=(en_{US,GB}.{UTF-,utf}8 en.UTF-8 + $(locale -a 2>/dev/null | egrep 'utf8|UTF-8')) for LANG in $langs; do if [[ é = ? ]]; then mb_ok=1