From owner-freebsd-ports@FreeBSD.ORG Thu Dec 15 08:16:03 2011 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8D013106564A for ; Thu, 15 Dec 2011 08:16:03 +0000 (UTC) (envelope-from dani@dpwright.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 54C838FC08 for ; Thu, 15 Dec 2011 08:16:03 +0000 (UTC) Received: by yhfq46 with SMTP id q46so2499433yhf.13 for ; Thu, 15 Dec 2011 00:16:02 -0800 (PST) Received: by 10.236.181.225 with SMTP id l61mr2618445yhm.131.1323935168325; Wed, 14 Dec 2011 23:46:08 -0800 (PST) Received: from localhost (y033118.ppp.asahi-net.or.jp. [118.243.33.118]) by mx.google.com with ESMTPS id d5sm7894894yhl.19.2011.12.14.23.46.06 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 14 Dec 2011 23:46:07 -0800 (PST) Date: Thu, 15 Dec 2011 16:46:09 +0900 From: "Daniel P. Wright" To: ports@freebsd.org Message-ID: <20111215074607.GB58769@vitei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Subject: muttprint port hangs (muttprint/perl) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2011 08:16:03 -0000 Hello, I am having some problems running the print/muttprint port. If I pass in a simple text file (some mail headers and a single line of text reading "Test"), it hangs indefinitely. If I send a SIGINT I get the following output: ^CCaught a SIGINT at ./muttprint line 1962 Line 1962 looks fairly innocuous: my @text = <$fh>; Where $fh is a file handle pointing to the simple text file mentioned above and passed into the function. My knowledge of perl is not great, but my understanding is that the <$fh> syntax is similar to a readline? I tried changing this to call the readline function explicitly, to no effect. On a hunch I thought my locale might be causing problems, as it is set to ja_JP.UTF-8, and I don't believe muttprint officially supports that locale. I tried setting it to en_US, but it still hangs. I am not sure whether this is a problem with muttprint itself, or a quirk of the FreeBSD perl port (--version reports 5.12.4), or something peculiar to my setup. For what it's worth, I have previously had muttprint working on Ubuntu installed from the tar.gz file on the muttprint website. Diffing the two versions reveals only superficial changes (penguin replaced with Beastie, etc). Apologies if I have the wrong list for this sort of thing. I took a look on freshports and there appears to be no active maintainer.