Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Failed tests of zsh 4.3.5 in Solaris 10 w/Sun Studio 12 CC



On Tue, 26 Feb 2008 15:42:19 +0100
Dagobert Michelsen <dam@xxxxxxxxxxxxx> wrote:
> Hi Peter,
> 
> 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?

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070



Messages sorted by: Reverse Date, Date, Thread, Author