Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: * Re: Failed tests of zsh 4.3.5 in Solaris 10 w/Sun Studio 12 CC
- X-seq: zsh-workers 24599
- From: "İsmail Dönmez" <ismail@xxxxxxxxxxx>
- To: "Peter Stephenson" <pws@xxxxxxx>
- Subject: Re: * Re: Failed tests of zsh 4.3.5 in Solaris 10 w/Sun Studio 12 CC
- Date: Tue, 26 Feb 2008 20:12:12 +0200
- Cc: zsh-workers@xxxxxxxxxx, "Dagobert Michelsen" <dam@xxxxxxxxxxxxx>
- In-reply-to: <20080226180807.10cd1476@news01>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <8AABEECB-A9A6-43EA-BED2-4BE376CBE349@xxxxxxxxxxxxx> <20080226141459.76dc362c@news01> <BD1EA7D6-C784-4ED9-9558-5B655CBC5096@xxxxxxxxxxxxx> <20080226145741.6e74fc22@news01> <656429B3-438B-4ECF-85C4-04E38D837D1A@xxxxxxxxxxxxx> <200802261610.m1QGAwJ3008939@xxxxxxxxxxxxxx> <20080226180807.10cd1476@news01>
Hi,
On Tue, Feb 26, 2008 at 8:08 PM, Peter Stephenson <pws@xxxxxxx> wrote:
> On Tue, 26 Feb 2008 16:10:58 +0000
> Peter Stephenson <pws@xxxxxxx> wrote:
> > + if (!codessetstr || !*codsetstr ||
> > + !strcmp(codesetstr, "646"))
> > + codesetstr == "US-ASCII";
>
> Er, except that there are three mistakes in those three lines of code, as
> Geoff pointed out. I was lulled into a false sense of security because
> this doesn't get compiled on my machine. I tried it specially.
>
> Index: Src/utils.c
> ===================================================================
> RCS file: /cvsroot/zsh/zsh/Src/utils.c,v
> retrieving revision 1.178
> diff -u -r1.178 utils.c
> --- Src/utils.c 26 Feb 2008 16:19:34 -0000 1.178
> +++ Src/utils.c 26 Feb 2008 18:05:59 -0000
> @@ -4885,9 +4885,9 @@
> * It shouldn't ever be NULL, but while we're
> * being paranoid...
> */
> - if (!codessetstr || !*codsetstr ||
> + if (!codesetstr || !*codesetstr ||
> !strcmp(codesetstr, "646"))
> - codesetstr == "US-ASCII";
> + codesetstr = "US-ASCII";
> cd = iconv_open(nl_langinfo(CODESET), "UCS-4BE");
> if (cd == (iconv_t)-1) {
> zerr("cannot do charset conversion (iconv failed)");
Yeah my patch did the same. Thanks.
--
Never learn by your mistakes, if you do you may never dare to try again
Messages sorted by:
Reverse Date,
Date,
Thread,
Author