From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20203 invoked from network); 16 Feb 2008 08:51:10 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 16 Feb 2008 08:51:10 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 33530 invoked from network); 16 Feb 2008 08:51:05 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 16 Feb 2008 08:51:05 -0000 Received: (qmail 3017 invoked by alias); 16 Feb 2008 08:51:00 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24558 Received: (qmail 2992 invoked from network); 16 Feb 2008 08:50:59 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 16 Feb 2008 08:50:59 -0000 Received: from mal35-2-82-225-70-234.fbx.proxad.net (mal35-2-82-225-70-234.fbx.proxad.net [82.225.70.234]) by bifrost.dotsrc.org (Postfix) with ESMTP id DB8C28026E0B for ; Sat, 16 Feb 2008 09:50:53 +0100 (CET) Received: from localhost (server.nasreddine.info [127.0.0.1]) by mal35-2-82-225-70-234.fbx.proxad.net (Postfix) with ESMTP id A203D23C9B for ; Sat, 16 Feb 2008 09:50:53 +0100 (CET) X-Virus-Scanned: amavisd-new at nasreddine.com Received: from mal35-2-82-225-70-234.fbx.proxad.net ([127.0.0.1]) by localhost (server.nasreddine.info [127.0.0.1]) (amavisd-new, port 10024) with LMTP id hp5BznsCmuFd for ; Sat, 16 Feb 2008 09:50:44 +0100 (CET) Received: from phoenix.nasreddine.info (phoenix.nasreddine.info [192.168.1.3]) by mal35-2-82-225-70-234.fbx.proxad.net (Postfix) with ESMTP id 3CDBF23C9A for ; Sat, 16 Feb 2008 09:50:44 +0100 (CET) Date: Sat, 16 Feb 2008 09:50:41 +0100 From: Wael Nasreddine To: zsh-workers@sunsite.dk Subject: Re: Fw: Phil's prompt is not working when LANG is set to UTF-8 Message-ID: <20080216085041.GA12955@phoenix.nasreddine.info> References: <20080215235241.2f255730@pws-pc> <200802161056.29466.arvidjaar@newmail.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IJpNTDwzlM2Ie8A6" Content-Disposition: inline In-Reply-To: <200802161056.29466.arvidjaar@newmail.ru> X-OS: Linux 2.6.24-tuxonice-r2 i686 X-Editor: VIM - Vi IMproved 7.1 (2007 May 12, compiled Feb 4 2008 15:13:47) X-PGP-Key: http://wael.nasreddine.com/files/Wael_Nasreddine.asc User-Agent: Mutt/1.5.16 (2007-06-09) X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on bifrost X-Virus-Status: Clean --IJpNTDwzlM2Ie8A6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable This One Time, at Band Camp, Andrey Borzenkov said, = On Sat, Feb 16, 2008 at 10:56:25AM +0300: > On Saturday 16 February 2008, Peter Stephenson wrote: > > How about the following tweak to prompts to support this? The upshot is > > that you include any funny characters in %{...%G%} where the %G for > > `glitch' (which may be repeated or take a numeric argument) indicates a > > screen cell taken up by the sequence.=20 > Yes, I was about to try the same today morning (you have to sleep on it); > but I likely would not end up with such elegant solution. > > I like this because it uses=20 > > facilities that have been present in the shell for a long time and hence > > was trivial to implement and might work. > > I played with this in simple cases, but would anybody like to confirm > > this works in the cases that matter (and maybe produce an updated Phil's > > Prompt)?=20 > I confirm that this works and updated prompt is attached. Wael, does it w= ork > for you with this patch applied? > Now downside of course is, it works only with patched shell ... > > To put it another way: I am happy to support this fix but=20 > > have no interest in doing anything with it myself. > > I think this is clean and useful enough that I will commit it anyway. OMG it finally works... Thank you so much guys, thanks a lot Peter... BTW don't Cc to me anymore, I've switched my subscription from -users to -workers Thanks again... I use it daily so if anything's wrong I'll notify you... --=20 Wael Nasreddine http://wael.nasreddine.com PGP: 1024D/C8DD18A2 06F6 1622 4BC8 4CEB D724 DE12 5565 3945 C8DD 18A2 =2E: An infinite number of monkeys typing into GNU emacs, would never make a good program. (L. Torvalds 1995) :. --IJpNTDwzlM2Ie8A6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) iD8DBQFHtqPhVWU5RcjdGKIRAgi6AJ9By/7TuK2J86KYjQBm1hmGHrtdiQCffEab RQ+myMQB778lYI/aw3kVeX0= =tjM8 -----END PGP SIGNATURE----- --IJpNTDwzlM2Ie8A6--