mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* dir.c (range): Cancel previous change. More discussion is needed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0477d9674e
commit
f3615ecc42
2 changed files with 4 additions and 3 deletions
|
@ -8,6 +8,8 @@ Mon Mar 8 15:31:41 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
|||
* dir.c (range): treat incomplete '[' as ordinary character (like
|
||||
has_magic does).
|
||||
|
||||
* dir.c (range): Cancel above change. More discussion is needed.
|
||||
|
||||
Sun Mar 7 22:37:46 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
||||
|
||||
* test/drb/ut_drb.rb: use 'druby://localhost:0'. [ruby-dev:23078]
|
||||
|
|
5
dir.c
5
dir.c
|
@ -97,7 +97,6 @@ range(pat, test, flags)
|
|||
char test;
|
||||
int flags;
|
||||
{
|
||||
char *first = pat;
|
||||
int not, ok = 0;
|
||||
int nocase = flags & FNM_CASEFOLD;
|
||||
int escape = !(flags & FNM_NOESCAPE);
|
||||
|
@ -120,13 +119,13 @@ range(pat, test, flags)
|
|||
pat++;
|
||||
cend = pat[1];
|
||||
if (!cend)
|
||||
break;
|
||||
return 0;
|
||||
pat += 2;
|
||||
}
|
||||
if (downcase(cstart) <= test && test <= downcase(cend))
|
||||
ok = 1;
|
||||
}
|
||||
return test == '[' ? first : 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define ISDIRSEP(c) (pathname && isdirsep(c))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue