Commit graph

7386 commits

Author SHA1 Message Date
knu
fba5bff993 20070215
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-15 02:53:10 +00:00
knu
af44ff5ea8 * dir.c, win32/win32.c, win32/dir.h, ruby.h, intern.h: Bring
encoding aware globbing support in from trunk.  Dir.[] and
  Dir.glob() can now take many patterns in an array.  Minor fixes
  will follow.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-15 02:52:43 +00:00
knu
db38fea37f * lib/uri/generic.rb (URI::Generic::userinfo): should support
empty password.  [ruby-core:10290]

* lib/uri/generic.rb (URI::Generic::set_password): password can be
  cleared by nil.  [ruby-core:10290]

* lib/uri/common.rb (escape): regard second string argument as a
  character set properly. [ruby-dev:27692]

* lib/uri: Lovely RDOC patches from mathew (metaATpoboxDOTcom).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-15 02:41:45 +00:00
knu
713920f74e * lib/cgi.rb (CGI::unescapeHTML): invalid decoding for single
unescaped ampersand.  a patch from Tietew
  <tietew+ruby-dev at tietew.net> in [ruby-dev:30292].
  fixed: [ruby-dev:30289]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-15 01:59:07 +00:00
knu
c31e487592 * ext/thread/thread.c: Handle interrupted waits correctly.
[ruby-bugs:PR#8663]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-15 01:57:03 +00:00
knu
c9f72b480d set svn:ignore
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-14 13:54:01 +00:00
knu
16c8670a9f 2007214
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-14 12:47:43 +00:00
knu
97b6683a28 * ext/digest/lib/digest.rb (Digest::self.const_missing): Drop
autoloads for sha2 classes in favor of handling in
  const_missing(), to work around a problem exposed on OS X.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-14 12:46:56 +00:00
shyouhei
15a53ee84e set svn:eol-style
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-13 19:39:32 +00:00
knu
438c4a6fdc * io.c (rb_f_syscall): Fix buffer overflow with syscall
arguments.  [ruby-bugs:PR#8541]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-13 06:21:47 +00:00
shyouhei
81737565b1 set svn:eol-style
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-12 23:01:19 +00:00
knu
eda936e63c * lib/cgi.rb (CGI::QueryExtension::read_multipart): Properly parse
a quoted-string in a Content-Disposition value.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-10 22:47:19 +00:00
knu
02db1bdf77 * configure.in, ext/thread/extconf.rb, lib/thread.rb: Add a
configure option `--disable-fastthread', to choose the original,
  pure ruby version of the "thread" library instead of the new,
  much faster implementation in ext/thread.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-10 21:41:26 +00:00
knu
78128f5e85 * ext/Setup: Add thread except for platforms without threads
support.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-10 21:24:58 +00:00
knu
e8b3e1af53 * ext/thread/lib/thread.rb: Add a replacement of thread.rb that
loads this extension.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-10 21:18:24 +00:00
knu
cf403cb734 * lib/thread.rb: Remove an ineffective part of the code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-10 20:42:08 +00:00
knu
2a7ec27be2 * ext/thread/thread.c (rb_thread_exclusive): Implement
Thread.exclusive.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-10 20:33:50 +00:00
knu
f9c378051a * ext/thread/thread.c: Get rid of use of a dummy function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-10 20:27:58 +00:00
eban
98a0f6588e * 2007-02-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-10 16:50:31 +00:00
knu
e366c36b6b * ext/thread/thread.c (Init_thread): Define missing aliases:
Queue#enq and SizedQueue#enq.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-10 16:48:02 +00:00
suke
ffddf9349f * ext/win32ole/win32ole.c (ole_variant2val): fix compile error
on VC++.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-10 00:05:42 +00:00
suke
c8359821a0 * ext/win32ole/win32ole.c (ole_variant2val): fix the bug when
SAFEARRAY pointer is NULL.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-09 22:41:09 +00:00
eban
ffe1735078 * 2007-02-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-09 15:49:53 +00:00
nagai
a06de8b901 * ext/tk/lib/tk.rb: fix typo (TkConfigMethod::__confinfo_cmd,
__conv_keyonly_opts).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-09 15:30:59 +00:00
knu
b28988b4f1 * ext/thread: Make style fixes (mostly de-K&R'ism) to match the
rest of the source code.

* ext/thread: Make USE_MEM_POOLS an extconf option.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-09 11:48:34 +00:00
knu
fff0db9dfe Oops, this is the original form. I committed the wrong file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-09 11:44:11 +00:00
knu
60047f3822 * ext/thread: Import the "fastthread" implementation by MenTaLguY
in the original form.  This module is not hooked into the build
  yet since it needs some style fixes and adjustments.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-09 11:41:49 +00:00
knu
b13f2006ec 20070209
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-09 06:53:31 +00:00
knu
dee43eec07 Back out the previous commit which was unintended.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-09 06:51:44 +00:00
knu
179eb27889 * ext/bigdecimal: Synchronize with trunk. Better function
prototypes, removal of a useless method `!=', and document
  updates.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-09 06:48:51 +00:00
naruse
b2515d3003 Tue Feb 06 22:06:45 2007 NARUSE, Yui <naruse@ruby-lang.org>
* ext/nkf/nkf-utf8/{nkf.c,utf8tbl.c}:
          imported nkf 2007-01-28.
          * Fixed: can't decode MIME encode JIS string.
          * Fixed: Fullwitdh-halfwidth conversion.
          * Support DoCoMo's and Softbank's EMOJI
          * Support CP932, CP5022x, eucJP-ms UDC
          * Support UTF-32 encoding
          * Support beyond BMP
          [ruby-dev:29700] [ruby-dev:29922] [ruby-dev:30144]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-06 13:35:50 +00:00
matz
ff46ec3a43 * eval.c (rb_iterate): need to PUSH_ITER in proper order.
[ruby-core:10125]

* test/ruby/test_iterator.rb (TestIterator::test_block_given_within_iterator):
  add new test.  [ruby-core:10125]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-31 05:59:23 +00:00
eban
3079f72f42 * 2007-01-31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-31 05:43:40 +00:00
nagai
8e7d740383 * ext/tk/sample/images/teapot.ppm: fix the broken file. [ruby-dev:30226]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-31 05:37:54 +00:00
usa
915e23730e * string.c (rb_str_sub_bang): calling rb_str_modify() should be just
before actually modifying the string.
  fixed: [ruby-dev:30211] (originally reported by zunda)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-30 06:04:37 +00:00
eban
1061c0f7f3 * 2007-01-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-30 03:10:18 +00:00
nobu
f366a687c9 * mkconfig.rb: autoconf 2.61 support. [ruby-core:10016]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-30 03:06:08 +00:00
nagai
4d0ec108af * ext/tk/sample/tktextio.rb: 'hist_size' option causes error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-29 19:56:48 +00:00
matz
e43d14725f * parse.y (dyna_var_lookup): should not alter dvar->val not to
destroy living value.  [ruby-core:10076]

* parse.y (dyna_init): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-27 14:25:02 +00:00
usa
0f886f2f24 * 2007-01-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-26 06:05:58 +00:00
nagai
eac39d7c02 * ext/tk/lib/tk.rb (TkConfigMethod#__confinfo_cmd,__conv_keyonly_optkeys):
make them private [ruby-dev:30074].
* ext/tk/lib/tk/txtwin_abst.rb: fix typo [ruby-dev:30073].
* ext/tk/lib/tk/canvas.rb (TkCanvas#scan_dragto): lack of an argument.
* ext/tk/lib/tk/canvas.rb: clarify the  including module name [ruby-dev:30080].
* ext/tk/lib/tk/scrollable.rb: change primary name of modules [ruby-dev:30080].
* ext/tk/lib/tkextlib/iwidgets/checkbox.rb: wrong number of arguments 
  [ruby-Bugs-7776].
* ext/tk/lib/tkextlib/iwidgets/radiobox.rb: ditto.
* ext/tk/lib/tkextlib/blt/tile/checkbutton.rb: change primary name of
  class [ruby-dev:30080].
* ext/tk/lib/tkextlib/blt/tile/radiobutton.rb: ditto.
* ext/tk/ChangeLog.tkextlib: update.
* ext/tk/lib/tkextlib/version.rb: update.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-26 03:18:23 +00:00
matz
53b95c497c * misc/ruby-mode.el (ruby-font-lock-syntactic-keywords): fix
regexp font-lock bug.  [ruby-talk:235758]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-24 09:11:36 +00:00
matz
d81d53f354 version.h: fix broken patchlevel; sorry
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-23 09:38:26 +00:00
matz
aaae2e4765 * hash.c: added documentation for Hash about how it uses eql? and
hash methods for the keys.  [ruby-core:09995]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-23 09:34:04 +00:00
matz
46e8b340df * lib/cgi.rb (CGI::QueryExtension::read_multipart): use == instead
of ===.  [ruby-dev:30176]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-23 09:32:39 +00:00
matz
e12e30710f * ext/socket/socket.c: fix errors in socket sample code.
[ruby-core:09992]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-23 01:27:31 +00:00
suke
abf36b65d0 remove including header file
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-13 22:08:53 +00:00
suke
6f910a6fa1 fix memory leak of win32ole.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-13 14:59:17 +00:00
usa
5c4ae9d745 * 2007-01-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-12 04:40:44 +00:00
knu
81246910f2 * ext/etc/etc.c (etc_getpwuid, etc_getgrgid): fix to correctly
convert uid/gid from VALUE. (backport of r11521)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-12 02:27:43 +00:00