From: Peter Stephenson <pws@ifh.de>
To: Amol Deshpande <amold@MICROSOFT.com>,
zsh-workers@math.gatech.edu (Zsh hackers list)
Subject: Re: FAQ, German Umlauts (patch)
Date: Mon, 30 Jun 1997 10:13:49 +0200 [thread overview]
Message-ID: <199706300813.KAA20716@sgi.ifh.de> (raw)
In-Reply-To: "Amol Deshpande"'s message of "Fri, 27 Jun 1997 12:06:57 MET." <C19803AFAA39CF11AD5700805F70712004D386FF@RED-64-MSG.dns.microsoft.com>
Amol Deshpande wrote:
> Peter,
> Should this also be applicable to 3.0.x ? Also, would printing eight-bit
> characters be affected by inittyptab ?
> thanks,
Here's a patch for zsh 3.0.x. The internal zsh table (set up in
ininittyptab()) isn't used in this case; isprint() is used in order to
give the system a chance of deciding what's printable.
*** Doc/zshoptions.man.p8 Mon Oct 21 21:01:15 1996
--- Doc/zshoptions.man Mon Jun 30 09:36:36 1997
***************
*** 416,421 ****
--- 416,426 ----
.BR trap " and"
.BR unset .
.TP
+ \fBPRINT_EIGHT_BIT\fP
+ Print eight bit characters literally in completion lists, etc.
+ This option is not necessary if your system correctly returns the
+ printability of eight bit characters (see ctype(3)).
+ .TP
\fBPRINT_EXIT_VALUE\fP (\-\fB1\fP)
Print the exit value of programs with non-zero exit status.
.TP
*** Src/globals.h.p8 Tue Jun 3 07:11:26 1997
--- Src/globals.h Mon Jun 30 10:04:01 1997
***************
*** 762,767 ****
--- 762,768 ----
{"overstrike", 0, 0, 0},
{"pathdirs", 'Q', 0, 0},
{"posixbuiltins", 0, 0, OPT_EMULATE|OPT_BOURNE},
+ {"printeightbit", 0, 0, 0},
{"printexitvalue", '1', 0, 0},
{"privileged", 'p', 'p', OPT_SPECIAL},
{"promptcr", x'V', 0, OPT_ALL},
*** Src/utils.c.p8 Tue Jun 3 07:11:28 1997
--- Src/utils.c Mon Jun 30 09:39:48 1997
***************
*** 174,179 ****
--- 174,181 ----
if (isprint(c))
goto done;
if (c & 0x80) {
+ if (isset(PRINTEIGHTBIT))
+ goto done;
*s++ = '\\';
*s++ = 'M';
*s++ = '-';
*** Src/zsh.h.p8 Tue Jun 3 07:11:28 1997
--- Src/zsh.h Mon Jun 30 09:37:01 1997
***************
*** 1124,1129 ****
--- 1124,1130 ----
OVERSTRIKE,
PATHDIRS,
POSIXBUILTINS,
+ PRINTEIGHTBIT,
PRINTEXITVALUE,
PRIVILEGED,
PROMPTCR,
--
Peter Stephenson <pws@ifh.de> Tel: +49 33762 77366
WWW: http://www.ifh.de/~pws/ Fax: +49 33762 77413
Deutsches Elektronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.
next prev parent reply other threads:[~1997-06-30 8:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-06-27 19:06 Amol Deshpande
1997-06-30 8:13 ` Peter Stephenson [this message]
[not found] <9706261543.AA03628@tallowcross.uni-frankfurt.de>
1997-06-26 16:46 ` Peter Stephenson
1997-06-26 21:42 ` Zefram
1997-06-26 23:05 ` Uli Zappe
1997-06-27 1:25 ` Uli Zappe
1997-06-27 7:47 ` 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=199706300813.KAA20716@sgi.ifh.de \
--to=pws@ifh.de \
--cc=amold@MICROSOFT.com \
--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).