zsh-workers
 help / color / mirror / code / Atom feed
From: Heiko Schroeder <heiko@pc73121.dialup.rwth-aachen.de>
To: zsh-workers@math.gatech.edu
Subject: Bug-fix for zsh-3.0pre6
Date: Sun, 11 Aug 1996 12:20 +0100 (MET)	[thread overview]
Message-ID: <m0upXdD-0009e0C@local.de> (raw)


Hi!

There is a small bug in math.c, in the function getcvar. It doesn't
check if the first char in the string is Meta and thus produces wrong
output in this case.

BTW, does it make sence to return a negative value for 8bit characters?
I think not, so I added a cast to unsigned char so that only positive
values are returned.

Changing the return statement to

    return (unsigned char)(*t == Meta ? t[1] ^ 32 : *t);

should fix the bug. (math.c, line 427)

CU
   Heiko

-- 
+----------------------------------------+------------------------------------+
|Email:                                  | Snail-mail:  Heiko Schroeder       |
|                                        |              Lerchenweg 120        |
|  heiko@pool.informatik.rwth-aachen.de  |              52223 Stolberg        |
|                                        |              GERMANY               |
+----------------------------------------+------------------------------------+


                 reply	other threads:[~1996-08-11 19:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=m0upXdD-0009e0C@local.de \
    --to=heiko@pc73121.dialup.rwth-aachen.de \
    --cc=heiko@pool.informatik.rwth-aachen.de \
    --cc=zsh-workers@math.gatech.edu \
    /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).