zsh-workers
 help / color / mirror / code / Atom feed
* 4.3.4 HEAD and iconv
@ 2007-04-26  1:17 Phil Pennock
  2007-04-26  9:28 ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Phil Pennock @ 2007-04-26  1:17 UTC (permalink / raw)
  To: zsh-workers

Hi,

If I get the current HEAD source then it won't build for me by default,
as I didn't let it know where iconv was and there's a point in the code
which assumes that if you HAVE_NL_LANGINFO and CODESET then you can use
a variable, count, which only exists if you HAVE_ICONV.

No idea whether or not this is a logically correct fix, but it does let
the code compile and run.

--- zsh-head/Src/utils.c        Tue Apr 17 04:59:38 2007
+++ zsh/Src/utils.c     Wed Apr 25 17:35:12 2007
@@ -4569,10 +4569,12 @@
     int count;
 #else
     unsigned int wval;
-# if defined(HAVE_NL_LANGINFO) && defined(CODESET) && defined(HAVE_ICONV)
+# if defined(HAVE_NL_LANGINFO) && defined(CODESET)
+#  if defined(HAVE_ICONV)
     iconv_t cd;
     char inbuf[4];
     size_t inbytes, outbytes;
+#  endif
     size_t count;
 # endif
 #endif


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: 4.3.4 HEAD and iconv
  2007-04-26  1:17 4.3.4 HEAD and iconv Phil Pennock
@ 2007-04-26  9:28 ` Peter Stephenson
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 2007-04-26  9:28 UTC (permalink / raw)
  To: zsh-workers

Phil Pennock wrote:
> If I get the current HEAD source then it won't build for me by default,
> as I didn't let it know where iconv was and there's a point in the code
> which assumes that if you HAVE_NL_LANGINFO and CODESET then you can use
> a variable, count, which only exists if you HAVE_ICONV.
> 
> No idea whether or not this is a logically correct fix, but it does let
> the code compile and run.

It looks OK and I've committed it.  Thanks.

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


To access the latest news from CSR copy this link into a web browser:  http://www.csr.com/email_sig.php

To get further information regarding CSR, please visit our Investor Relations page at http://ir.csr.com/csr/about/overview


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-04-26  9:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-26  1:17 4.3.4 HEAD and iconv Phil Pennock
2007-04-26  9:28 ` Peter Stephenson

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).