From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23280 invoked by alias); 25 Jan 2017 18:02:39 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 40416 Received: (qmail 29207 invoked from network); 25 Jan 2017 18:02:39 -0000 X-Qmail-Scanner-Diagnostics: from mail-qt0-f195.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.216.195):SA:0(-0.7/5.0):. Processed in 2.446919 secs); 25 Jan 2017 18:02:39 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: mikachu@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.216.195 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=7MS+JZ1mGzr0ZDXsK8pkSlP4LzvwKOGDignHUhwAPJ8=; b=cUisZsVumXzNbxu1tiqS1hzByNkkm6Qg0o3eDzoQWD9MeU0TMNHqZrs20d3rkRXwCX CBcNGWb5WN1RnIn/tZcNzlFLNkVZMIVAPqh61c4VfMvCSpxiR/cYwxUpKfFqbKu5n4dy luea1Fq45jT2cqLkrPmG7jBCqMlOx2RerRtXZ9fd+5yL6mYJ8Z70LhHYxH/2YwtSz7VJ cH9GVJYVXr62o5XdSjmZmcogGzeq08DIxHkRE4960hkdtpAYnjusDWrCPMBcB09WXR18 4TRIbJ38LS4Rb5HQb7fiqBeO+Fu8W4yFg82nDaza/tNvjTeLvrDG+/7OvKYIw7m5mNDJ uxNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=7MS+JZ1mGzr0ZDXsK8pkSlP4LzvwKOGDignHUhwAPJ8=; b=tWwMtP0dA1OIHwSDc+6LsN8R5rXgWz7jpWR5w5/aE+aAH35hF3RGLdmqRmoOVOwjEF pwFInFmDzGNW1xjWog34Ggof5x0IEYhjyfJuttwi2stS4TmNfY4ar3cj28HXo2GH42Em g3VvbSTirKkdnvBsi1QL8skZRm6jkwVayTgNzaWhIJZbVzkF1JpeALQxPI47693UoLsz J3s+z2jISvfqotT1Us7aZoLEYlKJh2nBaGdpiYIjKQGErQgjN3mDtmB7M1qij/R3/oBY JBUJtb15dON6cAQa0Gr90NmDbwUQyWL5R14iuBzDjkRxeQv4GXi/8XzSfIo9BJeonJMz araQ== X-Gm-Message-State: AIkVDXL37n3eoOeWJ0SE+gOelk+F8VqYBV+aozufuw7TqiLFb8CN92010Vbdoe7e2kLROpmG8/nvakTRW/1wcA== X-Received: by 10.55.27.65 with SMTP id b62mr37283882qkb.202.1485367349925; Wed, 25 Jan 2017 10:02:29 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: From: Mikael Magnusson Date: Wed, 25 Jan 2017 19:02:29 +0100 Message-ID: Subject: Re: UTF-8 locales on BSDs do not support collation correctly To: "Jun T." Cc: zsh workers , Jens Elkner , Peter Stephenson Content-Type: text/plain; charset=UTF-8 On Wed, Jan 25, 2017 at 3:27 PM, Jun T. wrote: > After the commit: > > commit 0e33ebc6514c8719513f3f20161274f6af2caffc > Author: Mikael Magnusson > Date: Tue Jan 24 12:01:57 2017 +0100 > > posted: Make D07 recognize more spellings of pl_PL.UTF-8 > > diff --git a/Test/D07multibyte.ztst b/Test/D07multibyte.ztst > (snip) > - if [[ -n ${$(locale -a 2>/dev/null)[(R)pl_PL.utf8]} ]]; then > + if [[ -n ${$(locale -a 2>/dev/null)[(R)pl_PL.(utf8|UTF-8)]} ]]; then > > > the test D07multibyte.ztst fails on macOS and freeBSD. > On these OSs (and maybe on other BSDs), the locale pl_PL.UTF-8 exists > but it does not support collation correctly (it just uses ASCII collation). > > Are there any OS which uses UTF-8 (instead of utf8) for locale name > and supports the collation correctly? It works fine on OpenBSD. However, I had to revert 40333 for it to compile there. Adding some extra CCs since the mailing list probably still doesn't work. gmake[2]: Entering directory '/home/mikachu/code/zsh/Src' gcc -c -I. -I../Src -I../Src -I../Src/Zle -I. -DHAVE_CONFIG_H -Wall -Wmissing-prototypes -O2 -o watch.o watch.c watch.c: In function 'readwtab': watch.c:488: warning: implicit declaration of function 'setutent' watch.c:489: warning: implicit declaration of function 'getutent' watch.c:489: warning: assignment makes pointer from integer without a cast watch.c:512: warning: implicit declaration of function 'endutent' gmake[3]: Entering directory '/home/mikachu/code/zsh/Src/Builtins' gmake[3]: Leaving directory '/home/mikachu/code/zsh/Src/Builtins' gmake[3]: Entering directory '/home/mikachu/code/zsh/Src/Modules' gmake[3]: Leaving directory '/home/mikachu/code/zsh/Src/Modules' gmake[3]: Entering directory '/home/mikachu/code/zsh/Src/Zle' gmake[3]: Leaving directory '/home/mikachu/code/zsh/Src/Zle' gmake[2]: Leaving directory '/home/mikachu/code/zsh/Src' Updated `stamp-modobjs'. rm -f zsh gcc -s -Wl,-E -o zsh main.o `cat stamp-modobjs` -lncursesw -lm -lc string.o: In function `wcs_ztrdup': string.c:(.text+0x534): warning: warning: wcscpy() is almost always misused, please use wcslcpy() builtin.o: In function `cd_try_chdir': builtin.c:(.text+0x64c3): warning: warning: strcpy() is almost always misused, please use strlcpy() params.o: In function `randomgetfn': params.c:(.text+0x23eb): warning: warning: rand() may return deterministic values, is that what you want? builtin.o: In function `fclist': builtin.c:(.text+0x1054c): warning: warning: strcat() is almost always misused, please use strlcat() builtin.o: In function `bin_print': builtin.c:(.text+0xa7e0): warning: warning: sprintf() is often misused, please use snprintf() watch.o: In function `readwtab': watch.c:(.text+0x43): undefined reference to `setutent' watch.c:(.text+0x48): undefined reference to `getutent' watch.c:(.text+0x73): undefined reference to `getutent' watch.c:(.text+0x83): undefined reference to `endutent' collect2: ld returned 1 exit status Makefile:227: recipe for target 'zsh' failed gmake[1]: *** [zsh] Error 1 gmake[1]: Leaving directory '/home/mikachu/code/zsh/Src' Makefile:188: recipe for target 'all' failed gmake: *** [all] Error 1 -- Mikael Magnusson