[#11073] segfault printing instruction sequence for iterator — <noreply@...>

Bugs item #10527, was opened at 2007-05-02 14:42

14 messages 2007/05/02
[#11142] Re: [ ruby-Bugs-10527 ] segfault printing instruction sequence for iterator — Nobuyoshi Nakada <nobu@...> 2007/05/10

Hi,

[#11188] Re: [ ruby-Bugs-10527 ] segfault printing instruction sequence for iterator — Paul Brannan <pbrannan@...> 2007/05/16

On Thu, May 10, 2007 at 04:51:18PM +0900, Nobuyoshi Nakada wrote:

[#11234] Planning to release 1.8.6 errata — Urabe Shyouhei <shyouhei@...>

Hi all.

17 messages 2007/05/25

Re: [ ruby-Bugs-8676 ] File.basename fails on Windows root paths

From: Nobuyoshi Nakada <nobu@...>
Date: 2007-05-16 08:15:22 UTC
List: ruby-core #11183
Hi,

At Wed, 16 May 2007 16:38:36 +0900,
Daniel Berger wrote in [ruby-core:11181]:
> In any case, the equivalent of File.basename is PathStripPath(), though 
> you'll need to mix it with PathRemoveExtension() if there's an extension 
> provided. The equivalent of File.dirname is PathRemoveFileSpec(). Note 
> that you'll need to use backslashes for those functions to work.

They are not equivalent, and the example PathStripPath() in
MSDN[1] seems like that the function just leaves the input
unchanged if it is not in expected form.

[1] http://msdn2.microsoft.com/en-us/library/ms628624.aspx

> To detect if a path is a root path use PathIsRoot(). This will return 
> true for "C:\\" or "\\server\\share" or even just "\\server".

Doesn't it mean they are not basenames?

-- 
Nobu Nakada

In This Thread