matz
c6af6b1b94
* symbian/README.SYMBIAN: symbian support added. great appreciate
...
to <alexandre.zavorine at symbian.com>.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-15 01:53:08 +00:00
nobu
e24346d6c6
* enc/trans/gb18030.trans: get rid of a 1.9 feature for cross
...
compile. [ruby-core:21345]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-14 15:06:19 +00:00
nobu
22e711c4bf
* encoding.c (rb_locale_charmap): fallback to codepage if no
...
locale is found. [ruby-core:21110]
* missing/langinfo.c (nl_langinfo_codeset): returns NULL if no
locale is found.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-14 14:57:34 +00:00
akr
3d829c8697
* gc.c (negative_size_allocation_error_with_gvl): abolish a warning.
...
(negative_size_allocation_error): ditto.
* ext/openssl/ossl.c (ossl_raise): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-14 13:39:17 +00:00
duerst
82c673d3a1
* enc/trans/gb18030.trans, gb18030-tbl.rb:
...
new Chinese GB18030 transcoding (from Yoshihiro Kambayashi)
* test/ruby/test_transcode.rb: added tests for the above
(from Yoshihiro Kambayashi)
* transcode_data.h, transcode.c, tool/transcode_tblgen.rb:
added support for GB18030-specific 4-byte sequences
(with Yoshihiro Kambayashi)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-14 11:12:30 +00:00
matz
b949be82cf
* ext/curses/extconf.rb: check ncursesw earlier than ncurses to
...
support UTF-8 strings. non UTF-8 strings should be converted
explicitly. [ruby-core:21094]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-14 07:19:58 +00:00
takano32
aa87e280ea
* cont.c: fix prototype declare of register_stack_extend
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-14 05:43:49 +00:00
nobu
2717a2eb6e
* win32/win32.c (rb_w32_aspawn): should not escape with carret
...
unless using cmd.exe.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-14 04:19:28 +00:00
nobu
f188bf2acb
* ext/socket/extconf.rb (gai_strerror): checks if available and if
...
returns const pointer.
* ext/socket/getaddrinfo.c (gai_strerror): defines only if non
available. [ruby-core:21328]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-14 04:09:05 +00:00
nobu
96a49b1ada
* io.c (rb_io_wait_readable, rb_io_wait_writable): need rb_fd_ptr.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-14 03:39:20 +00:00
nobu
ff80e84db9
* io.c (appendline): reformed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-14 03:38:06 +00:00
nobu
d4beba3f3e
* io.c (rb_io_s_pipe): reduced nest of rb_ensure of main block.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-14 03:35:25 +00:00
akr
badd44845e
* ext/socket/addrinfo.h (AI_NUMERICSERV): defined.
...
(AI_MASK): add AI_NUMERICSERV.
* ext/socket/getaddrinfo.c (getaddrinfo): support AI_NUMERICSERV.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-13 13:57:53 +00:00
yugui
ed15422759
* lib/ostruct.rb (OpenStruct#inspect): fixed the recursion check.
...
Patch by Kornelius Kalnbach. [ruby-core:20992].
* test/ostruct/test_ostruct.rb: test for inspect.
Patch by Kornelius Kalnbach. [ruby-core:20992].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-13 12:52:23 +00:00
usa
be551172ed
* io.c (io_reopen, rb_io_init_copy): should register fptr to pipe_list
...
when copying pipe fptr.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-13 12:45:43 +00:00
akr
84775721bc
* ext/socket/socket.c (rb_getaddrinfo): use getaddrinfo with GVL if
...
getaddrinfo.c/getnameinfo.c is used. They are not thread safe
because gethostbyname/gethostbyaddr is used.
(rb_getnameinfo): ditto.
* extconf.rb: define GETADDRINFO_EMU if getaddrinfo.c/getnameinfo.c is
used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-13 12:41:12 +00:00
yugui
e1809a0ced
* object.c (rb_obj_not_match): rdoc.
...
Patch by Kornelius Kalnbach.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-13 12:29:54 +00:00
usa
c4554d20a6
* io.c (rb_io_close_read): call rb_io_fptr_cleanup() instead of
...
fptr_finalize() because the fptr has special finalizser if it is a
pipe. [ruby-dev:37757] (3)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-13 09:23:54 +00:00
usa
fbc4429d72
* io.c (rb_io_initialize): workaround for Windows. [ruby-dev:37686]
...
(also see [ruby-dev:37721])
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-13 09:21:14 +00:00
nobu
e668e36b49
* template/{encdb,transdb}.h.tmpl: moved enc/make_encdb.rb and
...
enc/trans/make_transdb.rb using tool/generic_erb.rb.
* common.mk (encdb.h, transdb.h): generates from avobe template.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-13 09:05:29 +00:00
nobu
4cb8d3316a
* enc/trans/make_transdb.rb (converters): should not depend on the
...
hash order for cross compile.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-13 08:28:14 +00:00
naruse
7371086f68
Add dummy definition for fake rdoc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-13 08:18:16 +00:00
usa
50258b19fd
* include/ruby/intern.h, thread.c, win32/Makefile.sub (rb_fdset_t,
...
rb_fd_init, rb_fd_term, rb_fd_zero, rb_fd_set, rb_fd_clr, rb_fd_isset,
rb_fd_select, rb_fd_ptr, rb_fd_max, HAVE_RB_FD_INIT): new type,
functions, and macros for Windows.
* win32/win32.c (extract_fd, rb_w32_select): use rb_fdset_t to expand
fd_array if needed. [ruby-core:19946]
* win32/win32.c (copy_fd): new funcion for rb_w32_select().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-13 07:52:22 +00:00
yugui
e41bd61822
* tool/file2lastrev.rb (get_revisions): fixes problem with
...
svn on cygwin. [ruby-dev:37702].
Patch by Kouhei Sutou.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-13 03:37:24 +00:00
yugui
a5fdc9de34
* lib/irb/input-method.rb: IRB did not prompt for MSwin32.
...
[ruby-dev:37686].
Patch by arton <artonx AT yahoo.co.jp>.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-13 03:37:15 +00:00
usa
fc8835a5bb
* ext/socket/{getaddrinfo,getnameinfo}.c: need to include ws2tcpip.h
...
on Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-13 03:11:17 +00:00
duerst
654e94e1c9
Commit miss in previous commit.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-13 00:55:32 +00:00
duerst
c2cc750dd7
ext/socket/socket.c: removed warning about unused variable 'rai'.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-13 00:49:40 +00:00
usa
8212ca438d
* instruby.rb: require "tool/mdoc2man.rb" before chdir if needed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-12 18:08:02 +00:00
usa
370ffc6a2a
* ext/socket/extconf.rb: use headers instead of "netdb.h" in checking
...
getnameinfo() and getaddrinfo() because Windows doesn't have it.
see [ruby-dev:37757].
* ext/socket/sockport.h (SA_LEN): use sockaddr_in6 when defined AF_INET6
if INET6 is not defined. winsock2's getaddrinfo() returns
sockaddr_in6 if ipv6 is available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-12 17:59:45 +00:00
akr
f0e91e54a3
describe Encoding.find("locale") in rdoc of Encoding.locale_charmap.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-12 17:28:40 +00:00
nobu
e051337b85
properties.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-12 17:27:23 +00:00
nobu
dea3ad3cba
* win32/win32.c (internal_cmd_match): extracted from
...
is_internal_cmd.
* win32/win32.c (argv_size, join_argv): escapes redirection, pipe
and carret punctuations with carrets.
* win32/win32.c (rb_w32_aspawn): ditto, and redirections and pipe
have no meanings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-12 17:21:45 +00:00
nagai
3f2b281eee
* ext/tk/lib/tk.rb: use Encoding.find("locale") instaed of
...
Encoding.locale_charmap
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-12 17:10:02 +00:00
svn
8106658535
* 2009-01-13
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-12 16:00:08 +00:00
akr
91ff87c05d
* ext/socket/socket.c (sock_s_unpack_sockaddr_in): check too short
...
sockaddr.
(sock_s_unpack_sockaddr_un): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-12 16:00:03 +00:00
akr
73757753ae
* ext/socket/socket.c (addrinfo_ip_unpack): new method
...
AddrInfo#ip_unpack.
(addrinfo_unix_path): new method AddrInfo#unix_path.
(Init_socket): define above methods.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-12 14:58:25 +00:00
usa
5203e86b3d
* enc/trans: ignore files generated in build.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-12 14:56:45 +00:00
akr
68552c4248
* ext/socket/socket.c (IS_IP_FAMILY): defined.
...
(addrinfo_ip_p): use it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-12 14:32:21 +00:00
akr
839214e1e6
add test for AddrInfo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-12 08:52:37 +00:00
nobu
6b0304a5d7
* lib/test/unit/assertions.rb (assert_nothing_raised): removes the
...
current trace to get rid of an issue of MiniTest::Unit#location.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-12 08:23:07 +00:00
nobu
9aa8fcde55
* instruby.rb (install): erased a garbage.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-12 07:49:22 +00:00
nobu
729b4a813b
* win32/win32.c (open_dir_handle): extracted from rb_w32_opendir.
...
* win32/win32.c (winnt_stat): gets rid of strange behavior of
GetFileAttributes(). [ruby-core:21269]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-12 07:45:31 +00:00
akr
7099360a6c
rdoc update.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-12 06:57:54 +00:00
nobu
fdd7e03b79
* ChangeLog: fixed indent and removed trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-12 04:08:25 +00:00
nobu
9da504bbae
* instruby.rb (parse_args, install): added --strip option.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-12 03:43:57 +00:00
ko1
29a6650d86
* gc.c (ruby_xmalloc, ruby_xrealloc, ruby_xfree):
...
enable to use them without GVL.
if GC is invoked, acquire GVL during GC.
if NoMemoryError is raised, acquire GVL and raise it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-12 03:41:20 +00:00
nobu
4f2b409a10
* instruby.rb (install_recursive): skips the directory if matched
...
to a no_install pattern ending with a file separator.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-12 03:39:58 +00:00
akr
5c94a67eca
* ext/socket/mkconstants.rb: don't use bytesize because 1.9 dependent.
...
[ruby-core:21266]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-12 03:34:48 +00:00
ko1
6f09fc2efd
* thread.c: fix comment (terminology: Global VM Lock).
...
* thread.c (blocking_region_begin, blocking_region_end):
save and clear th->blocking_region_buffer.
* thread.c (rb_thread_call_with_gvl): check if it has GVL.
* thread.c (ruby_thread_has_gvl_p): added.
* vm_core.h: add decls.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-12 01:43:23 +00:00