summaryrefslogtreecommitdiffstats
path: root/dir.c
Commit message (Collapse)AuthorAgeFilesLines
* * dir.c (has_magic): glob names contain alphabets to enable case foldnobu2005-12-141-5/+22
| | | | | | | | | | search. [ruby-dev:27735] * dir.c (Init_Dir): FNM_SYSCASE which is default case fold flag. [ruby-dev:23296] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (Compare): should not fold double byte alphabet on win9x.ocean2005-12-021-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (rb_push_glob): fix delimiter bug. fixed: [ruby-dev:27105]nobu2005-09-161-35/+108
| | | | | | | | | | * dir.c (dir_s_aref, dir_s_glob): allow multiple patterns. [ruby-dev:27110] * win32/win32.c (cmdglob): enable brace expansion. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (ruby_glob): glob function not using ruby exception system.nobu2005-09-141-42/+45
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c: changed `foo (*bar)_((boo))' to `foo (*bar)(boo)`.ocean2005-09-141-3/+3
| | | | | | | | * enumerator.c, eval.c, gc.c, intern.h, io.c, process.c, ruby.c, ruby.h, signal.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]ocean2005-09-141-4/+4
| | | | | | | | | | | * defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c, gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h, node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h, rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c, util.c, util.h, variable.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c: moved to ANSI function style from K&R function style.ocean2005-09-121-156/+72
| | | | | | | | | | | | | | | | | (used protoize on windows, so still K&R remains on #ifdef part of other platforms. And `foo _((boo))' stuff is still there) [ruby-dev:26975] * bignum.c, class.c, compar.c, dir.c, dln.c, dmyext.c, enum.c, enumerator.c, error.c, eval.c, file.c, gc.c, hash.c, inits.c, io.c, main.c, marshal.c, math.c, numeric.c, object.c, pack.c, prec.c, process.c, random.c, range.c, re.c, regcomp.c, regenc.c, regerror.c, regexec.c, regparse.c, regparse.h, ruby.c, signal.c, sprintf.c, st.c, string.c, struct.c, time.c, util.h, variable.c, version.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c, dir.c, enum.c, hash.c, io.c, range.c, string.c, struct.c:nobu2005-08-301-0/+1
| | | | | | | | | let enumerable methods return Enumerator. [ruby-dev:26924] * intern.h (RETURN_ENUMERATOR): utility macro for enumerable methods. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (lambda): Perl6 style -> lambda expression. [NEW]matz2005-07-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | [VERY EXPERIMENTAL] * gc.c (id2ref): must not assign pointers to long int. use LONG_LONG instead if SIZEOF_LONG < SIZEOF_VOIDP. [ruby-talk:149645] * ruby.h: use LONG_LONG to simplify the change. [ruby-talk:149645] * dir.c (dir_each): rewinddir(3) before iteration. [ruby-talk:149628] * eval.c (rb_f_throw): replace all '0x%lx' by '%p'. [ruby-talk:149553] * missing/vsnprintf.c (BSD_vfprintf): '%p' need to handle 64bit size pointer. [ruby-talk:149553] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c, eval.c, parse.y, process.c, ruby.c: avoid warning "unusedocean2005-06-281-4/+2
| | | | | | | | | | | | variable" [ruby-dev:26387] * dir.c (glob_helper): avoid warning "enumeration value `RECURSIVE' not handled in switch" [ruby-dev:26392] (patch from Kazuhiro NISHIYAMA) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (glob_helper): check whether path is "" before callingeban2005-05-181-1/+1
| | | | | | | do_opendir. [ruby-dev:26183] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (glob_helper): get rid of using String. [ruby-dev:26180]nobu2005-05-181-47/+52
| | | | | | | | * eval.c (ruby_options), win32/win32.c (NtInitialize): move argument intialization back. [ruby-dev:26180] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c, file.c (lstat): avoid warnings for mingw.eban2005-04-111-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (rb_glob): fixed mismatch of argument.ocean2005-03-051-7/+1
| | | | | | | | | * dir.c (fnmatch): removed unnecessary code. (by string.c 1.219) * win32/win32.c (NtInitialize): ditto. (by numeric.c 1.117) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c: replace rb_protect_inspect() and rb_inspecting_p() bymatz2005-03-041-14/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rb_exec_recursive() in eval.c. * eval.c (rb_exec_recursive): new function. * array.c (rb_ary_join): use rb_exec_recursive(). * array.c (rb_ary_inspect, rb_ary_hash): ditto. * file.c (rb_file_join): ditto. * hash.c (rb_hash_inspect, rb_hash_to_s, rb_hash_hash): ditto. * io.c (rb_io_puts): ditto. * object.c (rb_obj_inspect): ditto * struct.c (rb_struct_inspect): ditto. * lib/set.rb (SortedSet::setup): a hack to shut up warning. [ruby-talk:132866] * lib/time.rb (Time::strptime): add new function. inspired by [ruby-talk:132815]. * lib/parsedate.rb (ParseDate::strptime): ditto. * regparse.c: move st_*_strend() functions from st.c. fixed some potential memory leaks. * exception error messages updated. [ruby-core:04497] * ext/socket/socket.c (Init_socket): add bunch of Socket constants. Patch from Sam Roberts <sroberts@uniserve.com>. [ruby-core:04409] * array.c (rb_ary_s_create): no need for negative argc check. [ruby-core:04463] * array.c (rb_ary_unshift_m): ditto. * lib/xmlrpc/parser.rb (XMLRPC::FaultException): make it subclass of StandardError class, not Exception class. [ruby-core:04429] * parse.y (fcall_gen): lvar(arg) will be evaluated as lvar.call(arg) when lvar is a defined local variable. [new] * object.c (rb_class_initialize): call inherited method before calling initializing block. * eval.c (rb_thread_start_1): initialize newly pushed frame. * lib/open3.rb (Open3::popen3): $? should not be EXIT_FAILURE. fixed: [ruby-core:04444] * eval.c (is_defined): NODE_IASGN is an assignment. * ext/readline/readline.c (Readline.readline): use rl_outstream and rl_instream. [ruby-dev:25699] * ext/etc/etc.c (Init_etc): sGroup needs HAVE_ST_GR_PASSWD check [ruby-dev:25675] * misc/ruby-mode.el: [ruby-core:04415] * lib/rdoc/generators/html_generator.rb: [ruby-core:04412] * lib/rdoc/generators/ri_generator.rb: ditto. * struct.c (make_struct): fixed: [ruby-core:04402] * ext/curses/curses.c (window_color_set): [ruby-core:04393] * ext/socket/socket.c (Init_socket): SO_REUSEPORT added. [ruby-talk:130092] * object.c: [ruby-doc:818] * parse.y (open_args): fix too verbose warnings for the space before argument parentheses. [ruby-dev:25492] * parse.y (parser_yylex): ditto. * parse.y (parser_yylex): the first expression in the parentheses should not be a command. [ruby-dev:25492] * lib/irb/context.rb (IRB::Context::initialize): [ruby-core:04330] * object.c (Init_Object): remove Object#type. [ruby-core:04335] * st.c (st_foreach): report success/failure by return value. [ruby-Bugs-1396] * parse.y: forgot to initialize parser struct. [ruby-dev:25492] * parse.y (parser_yylex): no tLABEL on EXPR_BEG. [ruby-talk:127711] * document updates - [ruby-core:04296], [ruby-core:04301], [ruby-core:04302], [ruby-core:04307] * dir.c (rb_push_glob): should work for NUL delimited patterns. * dir.c (rb_glob2): should aware of offset in the pattern. * string.c (rb_str_new4): should propagate taintedness. * env.h: rename member names in struct FRAME; last_func -> callee, orig_func -> this_func, last_class -> this_class. * struct.c (rb_struct_set): use original method name, not callee name, to retrieve member slot. [ruby-core:04268] * time.c (time_strftime): protect from format modification from GC finalizers. * object.c (Init_Object): remove rb_obj_id_obsolete() * eval.c (rb_mod_define_method): incomplete subclass check. [ruby-dev:25464] * gc.c (rb_data_object_alloc): klass may be NULL. [ruby-list:40498] * bignum.c (rb_big_rand): should return positive random number. [ruby-dev:25401] * bignum.c (rb_big_rand): do not use rb_big_modulo to generate random bignums. [ruby-dev:25396] * variable.c (rb_autoload): [ruby-dev:25373] * eval.c (svalue_to_avalue): [ruby-dev:25366] * string.c (rb_str_justify): [ruby-dev:25367] * io.c (rb_f_select): [ruby-dev:25312] * ext/socket/socket.c (sock_s_getservbyport): [ruby-talk:124072] * struct.c (make_struct): [ruby-dev:25249] * dir.c (dir_open_dir): new function. [ruby-dev:25242] * io.c (rb_f_open): add type check for return value from to_open. * lib/pstore.rb (PStore#transaction): Use the empty content when a file is not found. [ruby-dev:24561] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (dir_s_mkdir): win32 special processing doesn't need any longer.usa2004-12-071-5/+0
| | | | | | | | | | * win32/win32.[ch] (rb_w32_mkdir): new function. POSIX.1 compatible interface. * win32/win32.[ch] (rb_w32_rmdir): new function. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_file_chown): integer conversion should be prior tomatz2004-11-221-1/+1
| | | | | | | | | | | | | | | GetOpenFile(). [ruby-dev:24947] * file.c (rb_file_truncate): ditto. * file.c (rb_file_s_truncate): ditto. * dir.c (dir_seek): use NUM2OFFT(). * misc/ruby-mode.el (ruby-non-block-do-re): [ruby-core:03719] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (dir_seek): should retrieve dir_data after NUM2INT().matz2004-11-211-2/+3
| | | | | | | [ruby-dev:24941] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (rb_push_glob): fix overrun. [ruby-dev:24886]nobu2004-11-171-2/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (rb_glob): should have called rb_glob_caller().matz2004-11-111-1/+1
| | | | | | | [ruby-dev:24773] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (glob_helper): path is a string object now.nobu2004-11-101-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (rb_glob2): do not allocate buffer from heap to avoidmatz2004-11-101-66/+85
| | | | | | | | | | | | | | | memory leaks. use string object for buffering instead. [ruby-dev:24738] * dir.c (join_path): ditto. * io.c (io_read): external input buffer may be modified even after rb_str_locktmp(). [ruby-dev:24735] * dir.c (fnmatch): p or s may be NULL. [ruby-dev:24749] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (read_all): block string buffer modification duringmatz2004-10-191-13/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rb_io_fread() by freezing it temporarily. [ruby-dev:24479] * dir.c (rb_push_glob): block call at once the end of method. [ruby-dev:24487] * ext/enumerator/enumerator.c (enum_each_slice): remove rb_gc_force_recycle() to prevent potential SEGV. [ruby-dev:24499] * ext/zlib/zlib.c (zstream_expand_buffer): hide internal string buffer by clearing klass. [ruby-dev:24510] * ext/socket/socket.c (sock_s_getservbyaname): protocol string might be altered. [ruby-dev:24503] * string.c (rb_str_upto): check if return value from succ is a string. [ruby-dev:24504] * io.c (rb_io_popen): get mode string via rb_io_flags_mode() to avoid mode string modification. [ruby-dev:24454] * io.c (rb_io_getline_fast): should take delim as unsigned char to distinguish EOF and '\377'. [ruby-dev:24460] * io.c (rb_io_getline): add check for RS modification. [ruby-dev:24461] * enum.c (enum_sort_by): use qsort() directly instead using rb_iterate(). [ruby-dev:24462] * enum.c (enum_each_with_index): remove rb_gc_force_recycle() to prevent access to recycled object (via continuation for example). [ruby-dev:24463] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c (enum_sort_by): do not use qsort directly. usematz2004-09-211-24/+27
| | | | | | | | | | | | | | | | | | | | rb_ary_sort_bang() instead. [ruby-dev:24291] * enum.c (enum_sort_by): pedantic type check added. [ruby-dev:24291] * hash.c (rb_hash_foreach_iter): check iter_lev after each iteration. [ruby-dev:24289] * array.c (rb_ary_and): element size might change during comparison. [ruby-dev:24290] * array.c (rb_ary_or): ditto. [ruby-dev:24292] * array.c (rb_ary_equal): wrong fix. [ruby-dev:24286] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_delete): element comparison might change arraymatz2004-09-171-4/+18
| | | | | | | | | | | | | | | | size. [ruby-dev:24273] * parse.y: make ruby parser reentrant. merge ripper parser to the real one. this change makes ruby require bison. * file.c (rb_file_truncate): clear stdio buffer before truncating the file. [ruby-dev:24191] * ext/digest/digest.c: use rb_obj_class() instead of CLASS_OF which might return singleton class. [ruby-dev:24202] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (free_dir): fix memory leak. reported by yamamotomatz2004-08-191-1/+5
| | | | | | | | | | | | | | madoka. * eval.c (bind_eval): new method. [RCR 251] * string.c (rb_str_clear): new method. [ruby-dev:24104] * io.c (rb_io_reopen): should clear allocated OpenFile. pointed out by Guy Decoux. [ruby-core:03288] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Roll in Austin Ziegler's patchdave2004-08-091-6/+77
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (bracket): use NULL instead of 0.knu2004-07-171-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c: RDOC for File::FNM_CASEFOLD was missed.ocean2004-06-121-0/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (rb_push_glob): simplified code (not change behavior)ocean2004-05-061-6/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c: Updated RDocs.ocean2004-04-191-1/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c: Updated RDocs.ocean2004-04-191-25/+31
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (rb_push_glob): Dir.glob() should return nil if block is given.ocean2004-04-151-71/+36
| | | | | | | | | | | | | (http://www.ruby-lang.org/ja/man/index.cgi?cmd=view;name=Dir) * dir.c (push_braces): Dir.glob() should handle '{ }' nested more than 3 times. * dir.c (push_braces, rb_push_glob): Dir.glob() should handle escaped '{' and '}' and ','. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (rb_glob2, rb_glob, push_globs, push_braces, rb_push_glob):ocean2004-04-121-11/+22
| | | | | | | fix memory leak to occur when block is interrupted in Dir.glob. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (has_magic, find_dirsep): incomplete '[' matches no characterocean2004-04-091-20/+49
| | | | | | | | | | | | | | | | | | in Dir.glob. (follows File.fnmatch's behavior) * dir.c (fnmatch_helper): incomplete escape is ignored in File.fnmatch. (follows Dir.glob's behavior) * dir.c (find_dirsep): '/' between '[' and ']' is ignored in Dir.glob. (follows File.fnmatch with File::FNM_PATHNAME 's behavior) * dir.c (find_dirsep): escaped slash '\/' loses its meaning as directory separator in Dir.glob. [ruby-dev:23291] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * pack.c (pack_pack): use NUM2INT() instead of num2i32().matz2004-04-071-4/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_get_path): get path string via "to_path" method ifmatz2004-04-071-4/+4
| | | | | | | | | | | | path object is not a string. [Ruby2] * gc.c (rb_gc_call_finalizer_at_exit): do not free threads in the exit finalizers. * io.c (rb_io_reopen): should use rb_io_check_io(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (fnmatch_helper): File.fnmatch('\.', '.') should return true.ocean2004-03-161-23/+26
| | | | | | | | | | | | | (Rev1.112 lost compatiblity) * dir.c (fnmatch_helper): File.fnmatch('\/', '/', File::FNM_PATHNAME) should return true. (Rev1.112 lost compatiblity) * dir.c (fnmatch): '**/' shouldn't match leading period unless File::FNM_DOTMATCH is set. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (fnmatch):ocean2004-03-121-106/+132
| | | | | | | | | | | | | | | directory recursion '**/' can be used with File::FNM_PATHNAME. [ruby-dev:22901] * dir.c (fnmatch_helper): only '/' is accepted as path separator even in DOSISH environment. [ruby-dev:22974] [ruby-list:39337] * dir.c (fnmatch_helper): faster '*' matching. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (range): Cancel change for incomplete '['. More discussionocean2004-03-081-3/+3
| | | | | | | is needed. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (range): treat incomplete '[' as ordinary character (likeocean2004-03-081-30/+38
| | | | | | | has_magic does). fix buffer overrun at incomplete escape like '[\'. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (glob_helper): '**/' should not match leading periodocean2004-02-241-1/+2
| | | | | | | unless File::FNM_DOTMATCH is set. (like '*/') git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (fnmatch): File.fnmatch with FNM_PATHNAME was brokenocean2004-02-241-0/+1
| | | | | | | for the pattern including '*' followed by '/'. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (CompareImpl): File.fnmatch and Dir.glob get better performanceocean2004-02-161-36/+26
| | | | | | | | in Win32. This is achived by calling downcase() for single-byte characters. CharLower() is only called for multi-byte characters. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (push_braces): remove wrong const.ocean2004-02-151-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.h, dir.c (rb_glob): add const.ocean2004-02-151-9/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (glob_helper): Dir.glob('**/') did not work.ocean2004-02-081-28/+31
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Did some styles (no change to behavior)ocean2004-02-071-34/+15
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (fnmatch):ocean2004-02-071-2/+2
| | | | | | | | File.fnmatch('\[1\]' , '[1]') should return true. [ruby-dev:22815] File.fnmatch('*?', 'a') should return true. [ruby-dev:22819] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (glob_helper): infinite loop bug in win32 code.matz2004-01-291-1/+1
| | | | | | | [ruby-dev:22770] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e