This queue is for tickets about the Module-Starter-PBP CPAN distribution.

Report information
The Basics
Id:
21557
Status:
open
Priority:
Low/Low

People
Owner:
Nobody in particular
Requestors:
jim_graham [...] sympatico.ca
Cc:
AdminCc:

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



X-Originalarrivaltime: 18 Sep 2006 21:10:10.0045 (UTC) FILETIME=[D30A42D0:01C6DB66]
MIME-Version: 1.0
X-Spam-Status: No, hits=1.6 required=8.0 tests=BAYES_20,FORGED_HOTMAIL_RCVD,FORGED_RCVD_HELO,MSGID_FROM_MTA_HEADER,SPF_PASS
X-Mailer: Microsoft Office Outlook 11
Received-SPF: pass (x1.develooper.com: domain of jim_graham@sympatico.ca designates 65.54.191.162 as permitted sender)
content-type: text/plain; charset="utf-8"
Reply-To: <jim_graham@sympatico.ca>
Organization: ""
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 55B334D814C for <bug-Module-Starter-PBP@rt.cpan.org>; Mon, 18 Sep 2006 17:10:23 -0400 (EDT)
Received: (qmail 28324 invoked by alias); 18 Sep 2006 21:10:20 -0000
Received: from bayc1-pasmtp02.bayc1.hotmail.com (HELO BAYC1-PASMTP02.CEZ.ICE) (65.54.191.162) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Mon, 18 Sep 2006 14:10:17 -0700
Received: from mecano ([74.12.66.203]) by BAYC1-PASMTP02.CEZ.ICE over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830); Mon, 18 Sep 2006 14:10:09 -0700
Delivered-To: cpan-bug+module-starter-pbp@diesel.bestpractical.com
Subject: Breaks on standard windows home directories.
Return-Path: <jim_graham@sympatico.ca>
Thread-Index: AcbbZtFLSTbDBFkORbqvsRge2eS0Fw==
X-Original-To: bug-Module-Starter-PBP@rt.cpan.org
X-Spam-Check-BY: la.mx.develooper.com
X-Originating-Email: [jim_graham@sympatico.ca]
Date: Mon, 18 Sep 2006 17:10:07 -0400
Message-Id: <BAYC1-PASMTP02E78FA760127ACECBBBD7902D0@CEZ.ICE>
Message-Id: <019101c6db66$d2783c00$1901a8c0@mecano>
X-Mimeole: Produced By Microsoft MimeOLE V6.00.2900.2962
X-Originating-Ip: [74.12.66.203]
To: <bug-Module-Starter-PBP@rt.cpan.org>
Content-Transfer-Encoding: quoted-printable
From: "Jim Graham" <jim_graham@sympatico.ca>
X-RT-Original-Encoding: us-ascii
Content-Length: 996
Hi Module::Starter::PBP v0.0.3 breaks on windows standard home directories, of the form C:\Documents and Settings\<user>. 1. in setup, the default template_dir value is derived from $ENV{HOME}. On windows, this can be derived from $ENV{USERPROFILE} 2. in module creation, the t_guts method breaks on template_dirs with spaces in them due to the file glob. for my $test_file ( map { s{\A .*/t/}{}xms; $_; } glob "$self->{template_dir}/t/*" ) { This can be fixed by converting the template_dir on setup to an 8.3 (non-space) directory. The following diff addresses these 2 issues. 153a153,157
Show quoted text
> #-- win32 update > if ( ! defined $ENV{HOME} and defined $ENV{USERPROFILE}) { > $ENV{HOME} = $ENV{USERPROFILE}; > } >
164a169,173
Show quoted text
> if ( $^O =~ m{MSWIN|dos}i ) { > require Win32; > $template_dir = Win32::GetShortPathName( $template_dir); > $template_dir =~ s{\\}{/}g; > }
Thanks, Jim Graham
MIME-Version: 1.0
In-Reply-To: <BAYC1-PASMTP02E78FA760127ACECBBBD7902D0@CEZ.ICE>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Charset: utf8
References: <BAYC1-PASMTP02E78FA760127ACECBBBD7902D0@CEZ.ICE>
Message-ID: <rt-3.6.HEAD-19694-1229979124-915.21557-0-0@rt.cpan.org>
Content-Type: text/plain
Content-Transfer-Encoding: binary
From: apthorpe@cynistar.net
X-RT-Original-Encoding: utf-8
Content-Length: 296
A one-liner to convert long space-polluted Windows path names to ugly, space-free 8.3 filenames is: perl -e "use Win32; my $longdir=q{C:\Documents and Settings\Username\.module-starter\PBP}; print Win32::GetShortPathName($longdir), qq{\n};" Caveat: The path must already exist for this to work.
MIME-Version: 1.0
In-Reply-To: <rt-3.6.HEAD-19694-1229979124-915.21557-0-0@rt.cpan.org>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <BAYC1-PASMTP02E78FA760127ACECBBBD7902D0@CEZ.ICE> <rt-3.6.HEAD-19694-1229979124-915.21557-0-0@rt.cpan.org>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-10812-1330126694-493.21557-0-0@rt.cpan.org>
Content-Transfer-Encoding: binary
From: mascip@gmail.com
X-RT-Original-Encoding: utf-8
Content-Length: 607
i set MODULE_STARTER_DIR to C:\ and template_dir to C:\.module-starter and it worked. I didn't like this solution, though. I am still wondering whether it has any drawbacks, as i can copy-paste my template directory wherever i want after that. On Mon Dec 22 15:52:04 2008, arclight wrote:
Show quoted text
> A one-liner to convert long space-polluted Windows path names to ugly, > space-free 8.3 filenames is: > > perl -e "use Win32; my $longdir=q{C:\Documents and > Settings\Username\.module-starter\PBP}; print > Win32::GetShortPathName($longdir), qq{\n};" > > Caveat: The path must already exist for this to work.


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.