This queue is for tickets about the IO-Prompt CPAN distribution.

Report information
The Basics
Id:
18473
Status:
open
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
Smylers [...] stripey.com
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



X-Scanned-BY: AMaViS-ng at bestpractical
MIME-Version: 1.0
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00
Content-Disposition: inline
Received-SPF: pass (x1.develooper.com: local policy)
content-type: text/plain; charset="utf-8"
Received: from localhost (localhost.localdomain [127.0.0.1]) by diesel.bestpractical.com (Postfix) with ESMTP id AFEC44D863C for <cpan-bug+io-prompt@diesel.bestpractical.com>; Fri, 31 Mar 2006 08:13:00 -0500 (EST)
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 4A50E4D8141 for <bug-io-prompt@rt.cpan.org>; Fri, 31 Mar 2006 08:13:00 -0500 (EST)
Received: (qmail 31822 invoked by alias); 31 Mar 2006 13:12:54 -0000
Received: from bluebeard.laxan.co.uk (HELO bluebeard.laxan.co.uk) (81.21.79.10) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Fri, 31 Mar 2006 05:12:48 -0800
Received: from smylers by bluebeard.laxan.co.uk with local (Exim 3.36 #1 (Debian)) id 1FPJQf-0001Ja-00 for <bug-io-prompt@rt.cpan.org>; Fri, 31 Mar 2006 14:12:41 +0100
Delivered-To: cpan-bug+io-prompt@diesel.bestpractical.com
Subject: Unwarranted Presumption About $\
User-Agent: Mutt/1.5.9i
Return-Path: <Smylers@stripey.com>
X-Original-To: cpan-bug+io-prompt@diesel.bestpractical.com
X-Spam-Check-BY: la.mx.develooper.com
Date: Fri, 31 Mar 2006 14:12:41 +0100
Message-Id: <20060331131240.GA3660@stripey.com>
To: bug-io-prompt@rt.cpan.org
From: Smylers <Smylers@stripey.com>
X-RT-Original-Encoding: us-ascii
Content-Length: 965
Hi there. Thanks for IO::Prompt -- it looks like a really useful module. I've spotted a bug which while small did trip me up the very first time I tried out this module after installing it: % perl -MIO::Prompt -wle '$t = prompt "What? "; print "[$t]"' The text entered by the user is rather confusingly displayed only one character per line, so it goes down the screen rather than across. The culprit is the -l option, which is setting $\ to "\n" -- which is exactly what I wanted in the print statement in the line above, but which is also affecting print inside the prompt function. The fix is simple; just add this line: local $\ = ''; I put it just before the print statement on line 446 (in version 0.99.4): print {$OUT}(defined $echo ? $echo : $next); But it may be that there are other print statements in IO::Prompt affected by this, and $\ should actually be set in a wider scope. Best wishes, and thank you again for the module. Smylers
X-Scanned-BY: AMaViS-ng at bestpractical
MIME-Version: 1.0
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00,SPF_PASS
In-Reply-To: <rt-3.5.HEAD-25006-1143810787-165.18473-4-0@rt.cpan.org>
X-Accept-Language: en, en-us
Received-SPF: pass (x1.develooper.com: domain of thoughtstream@gmail.com designates 64.233.162.202 as permitted sender)
References: <RT-Ticket-18473@rt.cpan.org> <20060331131240.GA3660@stripey.com> <rt-3.5.HEAD-25006-1143810787-165.18473-4-0@rt.cpan.org>
Reply-To: damian@conway.org
Content-Type: text/plain; charset="utf-8"; format="flowed"
X-RT-Original-Encoding: us-ascii
Received: from localhost (localhost.localdomain [127.0.0.1]) by diesel.bestpractical.com (Postfix) with ESMTP id 91A964D814F for <cpan-bug+io-prompt@diesel.bestpractical.com>; Fri, 7 Apr 2006 20:45:03 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 2E3924D8112 for <bug-IO-Prompt@rt.cpan.org>; Fri, 7 Apr 2006 20:45:03 -0400 (EDT)
Received: (qmail 4289 invoked by alias); 8 Apr 2006 00:44:55 -0000
Received: from zproxy.gmail.com (HELO zproxy.gmail.com) (64.233.162.202) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Fri, 07 Apr 2006 17:44:51 -0700
Received: by zproxy.gmail.com with SMTP id 16so460526nzp for <bug-IO-Prompt@rt.cpan.org>; Fri, 07 Apr 2006 17:44:28 -0700 (PDT)
Received: by 10.37.18.45 with SMTP id v45mr2471958nzi; Fri, 07 Apr 2006 17:44:28 -0700 (PDT)
Received: from ?192.168.1.5? ( [59.167.80.173]) by mx.gmail.com with ESMTP id 6sm1316797nzn.2006.04.07.17.44.27; Fri, 07 Apr 2006 17:44:28 -0700 (PDT)
Delivered-To: cpan-bug+io-prompt@diesel.bestpractical.com
Subject: Re: [rt.cpan.org #18473] Unwarranted Presumption About $\
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.8) Gecko/20050511
Domainkey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:user-agent:x-accept-language:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=fG95FSsWZN8fMgNrF2a2IACEZHztRYcGbCZiwVDy9J/0oDL1441VL0d4SmwMZ8Taj+nnbZDGaRScfMPv3jYbxMUBX00a2/z4bau7G9ZInmW+UyWg2bSh58SCDFQWhZO0baua46OXjj2l1WJ04DgRsSBth5TAGRdvnHHCHZS5d6Y=
Return-Path: <thoughtstream@gmail.com>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+io-prompt@diesel.bestpractical.com
Date: Sat, 08 Apr 2006 10:44:30 +1000
Sender: Damian Conway <thoughtstream@gmail.com>
Message-Id: <4437076E.3010505@conway.org>
To: bug-IO-Prompt@rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Damian Conway <damian@conway.org>
X-RT-Original-Encoding: utf-8
RT-Message-ID: <rt-3.5.HEAD-11951-1144457107-809.18473-0-0@rt.cpan.org>
Content-Length: 128
Thanks for the report. I actually added the localization at the start of prompt() itself, to cover all possibilities. Damian


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.