From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29361 invoked from network); 23 Jun 1997 22:23:21 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 23 Jun 1997 22:23:21 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id SAA16298; Mon, 23 Jun 1997 18:17:04 -0400 (EDT) Resent-Date: Mon, 23 Jun 1997 18:17:04 -0400 (EDT) From: "Bart Schaefer" Message-Id: <970623152717.ZM9933@candle.brasslantern.com> Date: Mon, 23 Jun 1997 15:27:16 -0700 In-Reply-To: <21077.199706232115@stone.dcs.warwick.ac.uk> Comments: In reply to Zefram "Re: Are completion and prompt expansion 8-bit clean?" (Jun 23, 10:15pm) References: <21077.199706232115@stone.dcs.warwick.ac.uk> Reply-To: schaefer@nbn.com X-Mailer: Z-Mail (4.0b.820 20aug96) To: Zefram Subject: Re: Are completion and prompt expansion 8-bit clean? Cc: zsh-workers@math.gatech.edu MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Resent-Message-ID: <"myEFI1.0.Y-3.VNlhp"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/3294 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On Jun 23, 10:15pm, Zefram wrote: > Subject: Re: Are completion and prompt expansion 8-bit clean? > > In one sense, yes: they can handle 8-bit data. In fact, they can handle > arbitrary binary data. In another sense, no: they do not treat all 8-bit > data as printable, even when the display will interpret them as Latin-1 > or whatever. Unfortunately, Unix does not provide a way to find out > what characters are printable on a particular display device, so we have > to choose in the source which characters zsh will treat as printable. Sounds like a job for a module ... supply several localized tty-output modules, and select one to load based on $TERM or a capability of $TERM or some other environment setting ($TERM combined with $LANG, perhaps).