From: "Thomas Köhler" <jean-luc@picard.franken.de>
To: zsh workers <zsh-workers@zsh.org>
Subject: zsh-4.3.9 compilation fails with multibyte disabled
Date: Wed, 4 Nov 2009 14:08:44 +0100 [thread overview]
Message-ID: <20091104130843.GA27520@picard.franken.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 1288 bytes --]
Hello all,
the compiler complains because the int now_off is not declared at
the beginning of a block. As I don't know if someone else already
discovered this, here's a patch. Just ignore if it is already
fixed :-)
~/zsh/zsh-4.3.9> diff -u Src/Zle/zle_refresh.c.ORG Src/Zle/zle_refresh.c
--- Src/Zle/zle_refresh.c.ORG Wed Nov 4 13:54:32 2009
+++ Src/Zle/zle_refresh.c Wed Nov 4 14:02:01 2009
@@ -2044,8 +2044,9 @@
*/
if (!nl->chr)
break;
- do {
+ do
#endif
+ {
/*
* If an attribute was on here but isn't any more,
* output the sequence to turn it off.
@@ -2057,12 +2058,13 @@
zputc(nl);
nl++, ol++;
ccs++, vcs++;
+ }
#ifdef MULTIBYTE_SUPPORT
/*
* Make sure we always overwrite the complete width of
* a character that was there before.
*/
- } while ((ol->chr == WEOF && nl->chr) ||
+ while ((ol->chr == WEOF && nl->chr) ||
(nl->chr == WEOF && ol->chr));
#endif
}
~/zsh/zsh-4.3.9>
Bye,
Thomas
--
Thomas Köhler Email: jean-luc@picard.franken.de
<>< WWW: http://gott-gehabt.de
IRC: tkoehler
PGP public key available from Homepage!
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next reply other threads:[~2009-11-04 13:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-04 13:08 Thomas Köhler [this message]
2009-11-04 14:18 ` 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=20091104130843.GA27520@picard.franken.de \
--to=jean-luc@picard.franken.de \
--cc=zsh-workers@zsh.org \
/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).