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 24598
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: * Re: Failed tests of zsh 4.3.5 in Solaris 10 w/Sun Studio 12 CC
- Date: Tue, 26 Feb 2008 18:08:07 +0000
- Cc: Dagobert Michelsen <dam@xxxxxxxxxxxxx>
- In-reply-to: <200802261610.m1QGAwJ3008939@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Organization: CSR
- 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>
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)");
--
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