From: nobu.nokada@... Date: 2005-05-22T22:55:00+09:00 Subject: Re: [ ruby-Patches-1939 ] Pathname, totally revamped Hi, At Sun, 22 May 2005 13:20:21 +0900, Daniel Berger wrote in [ruby-core:05068]: > > > require "Win32API" if File::ALT_SEPARATOR > > > > File::ALT_SEPARATOR is not Windows specific. > > On what other platform is it not nil? Other DOSISH platforms, djgpp, OS/2 and human68k. > > > # Convert forward slashes to backslashes on > > Win32 > > > path.tr!("/",@sep) if File::ALT_SEPARATOR > > > > This changes the argument. > > Yes, I know. That's intentional. Really? > > And, I doubt about necessity of Win32API. > > I don't. UNC pathname issues are too difficult to > deal with in a generic manner without getting into > lots of conditionals. In file.c, whether a given path is UNC or not is judged by if it starts with successive 2 directory separators. Is it insufficient? -- Nobu Nakada