[#5563] Non-overridable and non-redefinable methods — Eric Mahurin <eric_mahurin@...>

Lately, I've been thinking about the future of ruby

44 messages 2005/08/19
[#5564] Re: Non-overridable and non-redefinable methods — Austin Ziegler <halostatue@...> 2005/08/19

On 8/19/05, Eric Mahurin <eric_mahurin@yahoo.com> wrote:

[#5571] Re: Non-overridable and non-redefinable methods — Eric Mahurin <eric_mahurin@...> 2005/08/19

--- Austin Ziegler <halostatue@gmail.com> wrote:

[#5574] Re: Non-overridable and non-redefinable methods — TRANS <transfire@...> 2005/08/20

Just wanted to add a few things.

[#5581] Re: Non-overridable and non-redefinable methods — Austin Ziegler <halostatue@...> 2005/08/20

On 8/19/05, TRANS <transfire@gmail.com> wrote:

[#5583] Re: Non-overridable and non-redefinable methods — "David A. Black" <dblack@...> 2005/08/20

Hi --

[#5585] Re: Non-overridable and non-redefinable methods — Eric Mahurin <eric_mahurin@...> 2005/08/20

--- "David A. Black" <dblack@wobblini.net> wrote:

[#5609] Pathname#walk for traversing path nodes (patch) — ES <ruby-ml@...>

Here is a small addition to Pathname against 1.9, probably suited

20 messages 2005/08/22

Re: [ ruby-Bugs-2308 ] Problem with mkmf and spaces in directory names?

From: Daniel Berger <djberg96@...>
Date: 2005-08-26 01:44:09 UTC
List: ruby-core #5682
--- noreply@rubyforge.org wrote:

> Bugs item #2308, was opened at 2005-08-25 13:42
> You can respond by visiting: 
>
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=2308&group_id=426
> 
> Category: None
> Group: None
> Status: Open
> Resolution: None
> Priority: 3
> Submitted By: Tim Smith (tsmith)
> Assigned to: Nobody (None)
> Summary: Problem with mkmf and spaces in directory
> names?
> 
> Initial Comment:
> See:
>
http://www.ruby-talk.org/cgi-bin/scat.rb/ruby/ruby-talk/104505
> 
> The problem remains as of ruby 1.8.2 (2004-12-25)
> [i386-mswin32].  With c:/program files/ruby, mkmf
> does not quote or shorten (progra~1) the path,
> causing, for example:
> 
> Error makefile 99: Redefinition of target
> 'c:/program'
> 
> Can this be fixed?

I brought this up back in ruby-talk:104505.  It
appears to be a bug in cl.exe.  It would be easy
enough to patch this by wrapping all paths on Windows
with GetShortPathName().  This could be done with the
Win32API package:

require "Win32API"

GetShortPathName =
Win32API.new("kernel32","GetShortPathName","PPL","L")

path = "C:\\program files\\mozilla firefox"
buff = 0.chr * 260
GetShortPathName.call(path, buf, buf.length)
short_path = buf.split(0.chr).first

p short_path # "C:\\PROGRA~1\\MOZILL~1"

The only potential gotcha, iirc, is that short paths
can be disabled as a filesystem speedup tweak, so it
wouldn't help people who had done that.  I think it's
better than nothing, however.

Regards,

Dan

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

In This Thread