Commit graph

7022 commits

Author SHA1 Message Date
eban
c213ea3a76 * dln.c (conv_to_posix_path): should initialize posix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-26 11:01:01 +00:00
nagai
e40a5e82ec commit miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-25 07:12:58 +00:00
usa
9889c77364 * 2005-11-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-25 07:07:25 +00:00
nagai
32ac1066d0 * sample/tkextlib/tile/demo.rb: bug fix
* sample/tkextlib/tile/themes/*: add some themes (blue, keramik, and
  plastik; require Tile-0.5 or later).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-25 07:05:22 +00:00
usa
2a666445f6 * configure.in (AC_CHECK_FUNCS): need to check link().
fixed: [ruby-dev:27814]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-24 12:07:18 +00:00
eban
5eb97a74ed * 2005-11-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-23 16:38:30 +00:00
ocean
4126b8742f * file.c (w32_io_info): CreateFile failed on Win9x if file was already
opened. (FILE_SHARE_READ was needed, but actually I don't understand
  the flags of CreateFile well...)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-23 16:32:47 +00:00
nagai
d062ab90e1 Add lacks for Tk8.5 support.
* ext/tk/lib/tk.rb: add Tk.pkgconfig_list and Tk.pkgconfig_get [Tk8.5 feature].
* ext/tk/lib/tk/text.rb: supports new indices modifires on a Text widget
  [Tk8.5 feature].
* ext/tk/lib/tk/virtevent.rb: add TkNamedVirtualEvent.
* ext/tk/lib/tk/autoload.rb: ditto.
* ext/tk/lib/tk/event.rb: add :data key for virtual events [Tk8.5 feature].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-23 12:01:24 +00:00
ocean
ce4cda9de5 * file.c (w32_io_info): should not call GetFileInformationByHandle
for pipe.

* file.c (w32_io_info): checks return value from rb_w32_get_osfhandle.

* file.c (w32_io_info): now can identify directory on WinNT.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-23 09:56:23 +00:00
matz
8847a49f21 * re.c (KR_REHASH): should cast to unsigned for 64bit CPU.
[ruby-core:06721]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-23 05:11:18 +00:00
ocean
2cb3480d22 * intern.h, file.c: failed to compile on windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-23 02:06:00 +00:00
gotoyuzo
b54ab5610b * ext/openssl/extconf.rb: check for X509V3_EXT_nconf_nid.
* ext/openssl/ossl_x509ext.c (MakeX509ExtFactory): should use
  OPENSSL_malloc to allocate X509V3_CTX.

* ext/openssl/ossl_x509ext.c (ossl_x509extfactory_create_ext): use
  X509V3_EXT_nconf_nid to avoid SEGV (and to build extensions which
  values are placed in separate section).

* test/openssl/test_x509ext.rb: new file.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-22 22:29:13 +00:00
eban
d927ff1210 * 2005-11-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-22 16:32:54 +00:00
nobu
fff3548e04 * file.c (test_identical): test if two files are identical.
* file.c (rb_f_test): support DOSISH systems where st_ino is not
  reliable.  fixed: [ruby-core:06672]

* win32.h, win32.c (rb_w32_osid): check the running platform.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-22 16:26:39 +00:00
nobu
d1f1aa820f * lib/optparse.rb: match incomplete (in current enconding) multibyte
string.  http://inamode6.tokuhirom.dnsalias.org/show/1551


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-22 14:53:16 +00:00
ocean
4dc782978d * win32/win32.c (winnt_stat): set mapped errno instead of ENOENT.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-22 09:42:09 +00:00
usa
a696d9ad0c * file.c (rb_file_s_basename): skip slashes just after UNC top slashes.
* test/ruby/test_path.rb (test_dirname, test_basename): follow new
  spec. and add new tests.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-22 05:48:51 +00:00
ocean
bb935564fd * win32/win32.c (rb_w32_stat): Dir.chdir('//server/shared');
p Dir.glob('*') should work on WinNT. (implemented our own
  stat(2) on WinNT) [ruby-list:41552] [ruby-dev:27711]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-22 04:21:01 +00:00
eban
aa0879081c * 2005-11-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-21 17:36:31 +00:00
nagai
40b89d6cf1 * ext/tk/lib/tkextlib/tile.rb: bug fix (Tk::Tile::USE_TTK_NAMESPACE
is not defined).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-21 17:34:12 +00:00
nobu
f8dd75cbcc * file.c (rb_file_s_basename): DOSISH_UNC is defined on cygwin but
DOSISH is not.  fixed: [ruby-dev:27797]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-21 16:47:13 +00:00
nobu
1f26578da0 * parse.y (dsym): prohibit empty symbol literal by interpolation.
fixed: [ruby-talk:166529]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-21 13:52:49 +00:00
nobu
c49ad1c40d * file.c (rb_path_skip_prefix, rb_file_s_basename): UNC without path
should not be splitted.  fixed: [ruby-dev:27776] [ruby-dev:27786]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-21 13:21:47 +00:00
ocean
6fb4053d9e changed ml-number
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-21 07:21:50 +00:00
eban
3d74cfbba1 * 2005-11-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-21 07:17:40 +00:00
ocean
5729217ccc * win32/setup.mk: findstr doesn't exist on win9x.
fixed: [ruby-dev:27756] (written by nobu)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-21 07:12:57 +00:00
nobu
99a40f4bf6 * parse.y (rb_symname_p): [ not followed by ] is not valid symbol.
fixed: [ruby-talk:166520]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-20 13:36:05 +00:00
eban
b74938dd42 * 2005-11-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-20 04:15:59 +00:00
akr
b8d6e2218e document that fork doesn't copy other threads
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-20 03:30:47 +00:00
ocean
1ec7274fd9 * test/ruby/test_array.rb (test_misc): added some tests
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-20 01:26:39 +00:00
ocean
9958d9509f * lib/fileutils.rb (FileUtils::ln): ln documentation fix.
[ruby-core:06661]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-20 01:23:41 +00:00
matz
2642753d5b * lib/fileutils.rb (FileUtils::ln): ln documentation fix.
[ruby-core:06661]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-19 11:01:42 +00:00
eban
951e25a070 * 2005-11-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-19 06:09:23 +00:00
nagai
cd30677dab * ext/tk/lib/tk/font.rb: remove dependency on Ruby's version (1.8 or 1.9).
* ext/tk/lib/tkextlib/ICONS/icons.rb: ditto.
* ext/tk/sample/tkextlib/treectrl/demo.rb: ditto.
* ext/tk/lib/tk.rb: update RELEASE_DATE


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-18 22:37:53 +00:00
usa
63fe6ca5a0 * file.c (rb_file_s_dirname): should use skipprefix for UNC path.
pointed out by nobu ([ruby-dev:27744]). fixed: [ruby-core:5076]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-18 09:09:25 +00:00
nagai
d3a17b1ee0 * ext/tk/lib/multi-tk.rb: add restriction to access the entried
command table and manipulate other IPs (for reason of security).
  Now, a IP object can be controlled by only its master IP or the
  default IP.
* ext/tk/lib/remote-tk.rb: add restriction to manipulate.
* ext/tk/tcltklib.c (ip_is_slave_of_p): add TclTkIp#slave_of?(ip)
  to check manipulability.
* ext/tk/lib/tk.rb: bug fix on handling of Tcl's namespaces.
* ext/tk/lib/tk/namespace.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-18 08:39:29 +00:00
usa
147dcb2236 * file.c (file_s_dirname): added checks for some patterns with drive
letter. fixed: [ruby-dev:27738]

* test/ruby/test_path.rb (test_dirname): added tests for above
  patterns.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-18 08:27:52 +00:00
eban
8f8d046b1f * 2005-11-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-18 03:36:16 +00:00
ocean
d63a0bb871 * win32/win32.h (S_IFIFO): r,w = IO.pipe; r.stat.pipe? now
returns true on VisualC++6.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-18 03:22:26 +00:00
eban
bbc9e07dc3 * 2005-11-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-16 14:30:02 +00:00
nobu
5a483d1943 * common.mk (static-ruby): overridable.
* ext/extmk.rb (parse_args): force to link extensions statically only
  if static is given for extstatic.

* ext/extmk.rb (RUBY, RUBYW): overridable.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-16 14:25:53 +00:00
matz
b30b46d139 * lib/find.rb (Find::find): should not ignore symbolic links to
non-existing files.  [ruby-talk:165866]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-15 14:50:14 +00:00
nagai
b640a8ed18 * ext/tk/sample/24hr_clock.rb: a new example about handling of canvas items.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-15 07:51:30 +00:00
ocean
e23aa93e5b * array.c (rb_ary_fill): previous commit disabled this usage:
a = [0,1,2,3,4,5,6,7,8,9]
    a.fill {|i| a[i] * 10} #=> [nil, nil, ...., nil]

  previous commit has advantange for early garbage collection, but
  potensially would break some script. so I reverted behavior.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-15 07:38:38 +00:00
ocean
518851f88d * array.c (rb_ary_fill): tail elements were vanished when the middle
part of array was filled. (ie: [0,1,2,3,4].fill(-1,2,1) => [0,1,-1])

* test/ruby/test_array.rb (test_fill): added.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-15 07:06:00 +00:00
eban
8950f85603 * 2005-11-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-15 05:46:03 +00:00
matz
18f7059688 * array.c (rb_ary_fill): should adjust array length correctly when
an array is expanded in the fill process.  [ruby-core:06625]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-15 05:42:36 +00:00
nobu
b750e49434 * file.c (rb_file_s_readlink): ERANGE will occur only on GPFS.
[ruby-dev:27699]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-14 14:52:55 +00:00
eban
5028ce7133 * 2005-11-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-14 08:48:46 +00:00
matz
f8c1ca18c9 * array.c (rb_ary_first): RDoc update from Daniel Berger
<djberg96@yahoo.com>.  [ruby-core:06577].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-14 08:39:34 +00:00