Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: UTF-8 locales on BSDs do not support collation correctly
- X-seq: zsh-workers 40416
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: "Jun T." <takimoto-j@xxxxxxxxxxxxxxxxx>
- Subject: Re: UTF-8 locales on BSDs do not support collation correctly
- Date: Wed, 25 Jan 2017 19:02:29 +0100
- Cc: zsh workers <zsh-workers@xxxxxxx>, Jens Elkner <jel+zsh@xxxxxxxxxxxxxxxxxxx>, Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- 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==
- In-reply-to: <D8FAAD99-A0A8-48B5-9636-620ADB815B21@kba.biglobe.ne.jp>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <D8FAAD99-A0A8-48B5-9636-620ADB815B21@kba.biglobe.ne.jp>
On Wed, Jan 25, 2017 at 3:27 PM, Jun T. <takimoto-j@xxxxxxxxxxxxxxxxx> wrote:
> After the commit:
>
> commit 0e33ebc6514c8719513f3f20161274f6af2caffc
> Author: Mikael Magnusson <mikachu@xxxxxxxxx>
> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author