From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.90.79.9 with SMTP id c9cs276353agb; Fri, 6 Nov 2009 12:21:43 -0800 (PST) Received: by 10.224.36.89 with SMTP id s25mr2673931qad.5.1257538902987; Fri, 06 Nov 2009 12:21:42 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 42si447206qyk.98.2009.11.06.12.21.42; Fri, 06 Nov 2009 12:21:42 -0800 (PST) Received-SPF: pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-talk-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 9E0BC1D78861; Fri, 6 Nov 2009 15:21:42 -0500 (EST) X-Greylist: delayed 902 seconds by postgrey-1.31 at rubycentral.org; Fri, 06 Nov 2009 15:21:30 EST Received: from VA3EHSOBE001.bigfish.com (va3ehsobe001.messaging.microsoft.com [216.32.180.11]) by rubyforge.org (Postfix) with ESMTP id 743DF18582BF for ; Fri, 6 Nov 2009 15:21:32 -0500 (EST) Received: from mail35-va3-R.bigfish.com (10.7.14.246) by VA3EHSOBE001.bigfish.com (10.7.40.21) with Microsoft SMTP Server id 8.1.340.0; Fri, 6 Nov 2009 20:06:28 +0000 Received: from mail35-va3 (localhost.localdomain [127.0.0.1]) by mail35-va3-R.bigfish.com (Postfix) with ESMTP id D542A1A404E6 for ; Fri, 6 Nov 2009 20:06:28 +0000 (UTC) X-SpamScore: -11 X-BigFish: VPS-11(zz1432R4015Lzz1202hzzz32i6bh27bh87h43j61h) X-Spam-TCS-SCL: 0:0 X-FB-DOMAIN-IP-MATCH: fail Received: by mail35-va3 (MessageSwitch) id 1257537985538216_9091; Fri, 6 Nov 2009 20:06:25 +0000 (UCT) Received: from VA3EHSMHS004.bigfish.com (unknown [10.7.14.248]) by mail35-va3.bigfish.com (Postfix) with ESMTP id 7A859D30051 for ; Fri, 6 Nov 2009 20:06:25 +0000 (UTC) Received: from ausb3extmailp01.amd.com (163.181.251.8) by VA3EHSMHS004.bigfish.com (10.7.99.14) with Microsoft SMTP Server (TLS) id 14.0.482.32; Fri, 6 Nov 2009 20:06:23 +0000 Received: from ausb3twp01.amd.com ([163.181.250.37]) by ausb3extmailp01.amd.com (Switch-3.2.7/Switch-3.2.7) with ESMTP id nA6K6Isc004445 for ; Fri, 6 Nov 2009 14:06:21 -0600 X-WSS-ID: 0KSPEIE-01-3WO-02 X-M-MSG: Received: from sausexbh1.amd.com (sausexbh1.amd.com [163.181.22.101]) by ausb3twp01.amd.com (Tumbleweed MailGate 3.7.0) with ESMTP id 282EED18375 for ; Fri, 6 Nov 2009 14:06:14 -0600 (CST) Received: from sausexmb4.amd.com ([163.181.3.15]) by sausexbh1.amd.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 6 Nov 2009 14:06:17 -0600 Received: from optimon.amd.com ([163.181.34.104]) by sausexmb4.amd.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 6 Nov 2009 14:06:17 -0600 Received: from mhdc-ns01.amd.com (mhdc-ns01.amd.com [165.204.35.147]) by optimon.amd.com (8.12.10/8.12.10) with ESMTP id nA6K6HYK015549 for ; Fri, 6 Nov 2009 14:06:17 -0600 Received: from testarossa.amd.com (testarossa.amd.com [165.204.147.44]) by mhdc-ns01.amd.com (8.13.8+Sun/8.13.8) with ESMTP id nA6K6Hel018934 for ; Fri, 6 Nov 2009 13:06:17 -0700 (MST) Received: (from manderso@localhost) by testarossa.amd.com (8.13.1/8.13.1/Submit) id nA6K6HEc016767; Fri, 6 Nov 2009 13:06:17 -0700 From: Mark Anderson To: sup-talk In-Reply-To: <1257520288-sup-8595@onnadayr.ca> References: <1257452860-sup-7983@testarossa> <1257520288-sup-8595@onnadayr.ca> Date: Fri, 6 Nov 2009 13:06:17 -0700 Message-ID: <1257537789-sup-1961@testarossa> User-Agent: Sup/git X-OriginalArrivalTime: 06 Nov 2009 20:06:17.0580 (UTC) FILETIME=[99B242C0:01CA5F1C] MIME-Version: 1.0 X-Bypass-Agent: IPF-1; X-Reverse-DNS: unknown Subject: Re: [sup-talk] Sup-sync exception X-BeenThere: sup-talk@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: User & developer discussion of Sup List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-talk-bounces@rubyforge.org Errors-To: sup-talk-bounces@rubyforge.org Excerpts from rick.tessner's message of Fri Nov 06 08:13:19 -0700 2009: > I had that exact same thing. If you applied a patch that used > Ncurses.cols rather than WRAP_LEN to determine screen width, you'll have > that problem in the non-curses based sup applications. > > The patch came from an email with the subject > > [PATCH] Use terminal width instead of hardcoded 80 as the wrap length. I had applied that previous patch, as you guessed. There was another patch that is complementary in getting the console to recognize the width of the terminal, I forget the tname, but here's what I have in my message-chunks.rb: TERM_WIDTH = `stty size 2>/dev/null`.split[1].to_i # to_i returns 0 if it fails WRAP_LEN = TERM_WIDTH > 0 && TERM_WIDTH || 80 # wrap messages and text attachments at this width I don't know why that patch preferred `stty` to ENV["COLUMNS"], since that one had worked for me. > I initially didn't have any problems whatsoever with that patch until I ran > sup-sync. I fixed it with the attached commit. > > This patch just does a rescue on that call. The patch is only > applicable if you had applied a patch that came through previously on > this list for using Ncurses.cols rather than WRAP_LEN in > lib/sup/message-chunks.rb Thanks, it is much happier now. -Mark _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk