From: Dagobert Michelsen <dam@blastwave.org>
To: Peter Stephenson <pws@csr.com>
Cc: zsh-workers@sunsite.dk
Subject: Re: Failed tests of zsh 4.3.5 in Solaris 10 w/Sun Studio 12 CC
Date: Tue, 26 Feb 2008 16:18:10 +0100 [thread overview]
Message-ID: <656429B3-438B-4ECF-85C4-04E38D837D1A@blastwave.org> (raw)
In-Reply-To: <20080226145741.6e74fc22@news01>
Hi Peter,
Am 26.02.2008 um 15:57 schrieb Peter Stephenson:
> On Tue, 26 Feb 2008 15:42:19 +0100
> Dagobert Michelsen <dam@blastwave.org> wrote:
>> first, thanks for the effort. I have applied the patch
>> and reran the testsuite.
>> ./A03quoting.ztst: starting.
>> Test ./A03quoting.ztst failed: bad status 1, expected 0 from:
>> print '<\u0041>'
>> printf '%s\n' $'<\u0042>'
>> print '<\u0043>'
>> printf '%s\n' $'<\u0044>'
>> Error output:
>> (eval):1: cannot do charset conversion (iconv failed)
>> Was testing: \u in both print and printf
>
> Weird... that's the variant I wasn't expecting since it implies
> a run time failure in iconv, and not a dynamical link failure, either.
> That means this call failed (Src/utils.c:4878 in the current source):
>
> cd = iconv_open(nl_langinfo(CODESET), "UCS-4BE");
> if (cd == (iconv_t)-1) {
> zerr("cannot do charset conversion (iconv failed)");
> CHARSET_FAILED();
> }
>
> Any idea if your iconv supports UCS-4BE? GNU iconv will tell you with
> "iconv --list", but if you have a Solaris variant it's likely to be
> different. Otherwise, could nl_langinfo(CODESET) not be returning
> anything?
In fact I am linking against libiconv from Blastwave.org at
/opt/csw/lib. However, the charset seems to be supported:
thor% /opt/csw/bin/iconv -l | grep UCS-4BE
UCS-4BE
The system trace looks like this:
16896: sigprocmask(SIG_BLOCK, 0x080464E4, 0x080464C0) = 0
16896: sigprocmask(SIG_BLOCK, 0x080460B4, 0x08046090) = 0
16896: -> libiconv:libiconv_open(0xdf986e04, 0x80c1e90)
...and...
thor% mdb -p 16896
Loading modules: [ ]
> 0xdf986e04/S
0xdf986e04: 646
> 0x80c1e90/S
0x80c1e90: UCS-4BE
Looks like there is no 646:
thor% /opt/csw/bin/iconv -l | grep 646
ANSI_X3.4-1968 ANSI_X3.4-1986 ASCII CP367 IBM367 ISO-IR-6 ISO646-US
ISO_646.IRV:1991 US US-ASCII CSASCII
ISO-10646-UCS-2 UCS-2 CSUNICODE
ISO-10646-UCS-4 UCS-4 CSUCS4
ISO-IR-14 ISO646-JP JIS_C6220-1969-RO JP CSISO14JISC6220RO
CN GB_1988-80 ISO-IR-57 ISO646-CN CSISO57GB1988
Is this an error from zsh or is this a bug in libiconv?
Thanks!
-- Dago
next prev parent reply other threads:[~2008-02-26 15:18 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-26 13:18 Dagobert Michelsen
2008-02-26 14:14 ` Peter Stephenson
2008-02-26 14:42 ` Dagobert Michelsen
2008-02-26 14:57 ` Peter Stephenson
2008-02-26 15:18 ` Dagobert Michelsen [this message]
2008-02-26 16:10 ` * " Peter Stephenson
2008-02-26 17:37 ` Oliver Kiddle
2008-02-27 11:29 ` Peter Stephenson
2008-02-27 16:16 ` Bart Schaefer
2008-02-29 9:53 ` Oliver Kiddle
2008-03-03 12:08 ` Peter Stephenson
2008-03-03 12:43 ` Dagobert Michelsen
2008-03-03 12:59 ` Peter Stephenson
2008-02-26 18:08 ` Peter Stephenson
2008-02-26 18:12 ` İsmail Dönmez
2008-02-26 19:19 ` Dagobert Michelsen
2008-02-26 19:47 ` Dagobert Michelsen
2008-02-26 20:42 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=656429B3-438B-4ECF-85C4-04E38D837D1A@blastwave.org \
--to=dam@blastwave.org \
--cc=pws@csr.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).