matz
86c50e3983
* ruby.c (load_file_internal): should not set script encoding to
...
ASCII-8BIT.
* ruby.c (load_file_internal): do not auto convert scripts even
when default_internal is set. [ruby-core:19579]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-30 09:17:49 +00:00
nobu
9767736b40
* enc/trans/iso-8859-1-tbl.rb: eol-style.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-30 06:00:02 +00:00
duerst
6fd14ccae5
* enc/trans/single_byte.trans: refactoring to make it easier
...
to add more transcodings (with Yoshihiro Kambayashi)
* enc/trans/iso-8859-1-tbl.rb: new file to avoid having to
treat ISO-8859-1 as special
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-30 05:47:01 +00:00
nobu
5cdd7f52cc
* ruby.c (moreswitches): splits option string and passes arguments.
...
* ruby.c (proc_options): checks if allowed in RUBYOPT.
* ruby.c (process_options): allows long style options in RUBYOPT.
* ruby.c (load_file_internal): ditto in shebang. [ruby-dev:36979]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-30 01:34:23 +00:00
nobu
2db25b6ba0
* encoding.c (rb_locale_encoding): makes an alias for locale.
...
[ruby-dev:36976]
* encoding.c (rb_enc_set_default_external): ditto for external.
* encoding.c (rb_enc_set_default_internal): ditto for internal.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-30 00:31:47 +00:00
takano32
2f2ca24b3e
* indent ChangeLog
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-29 21:23:47 +00:00
mame
d3b9a514cb
* add references.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-29 17:32:02 +00:00
mame
e2cb0b9766
* array.c (rb_ary_sort_bang): remove SEGV when replacing array with
...
embedded one during sort.
* test/ruby/test_array.rb (test_sort!): add tests for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-29 17:24:44 +00:00
mame
143f059bcd
* test/ruby/test_array.rb: add some tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-29 16:46:08 +00:00
matz
f27e4c045f
* string.c (rb_str_check_dummy_enc): new function to check dummy
...
encoding.
* string.c (rb_str_upcase_bang): case conversion functions should
not be applicable to strings in dummy encoding. [ruby-dev:36985]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-29 16:44:24 +00:00
matz
86ade65104
* io.c (rb_io_rewind): should reset fptr->readconv if it's
...
available.
* io.c (more_char): clear readconv at EOF.
* test/ruby/test_file.rb: should not read after EOF. use rewind
instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-29 16:40:05 +00:00
mame
2e51b7f9da
* array.c (rb_ary_splice): remove redundant check.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-29 16:35:47 +00:00
mame
6bacaabffd
* string.c (rb_str_cmp): fix condition which always returned true
...
because ENCODING_GET returns unsigned long.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-29 16:30:02 +00:00
svn
86a3914825
* 2008-10-30
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-29 16:17:01 +00:00
mame
85b6c69e82
* test/ruby/test_array (test_permutation): add a test that replaces
...
array during permutation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-29 16:16:53 +00:00
mame
0d83c7b6c2
* array.c (rb_ary_sort_bang): replacing array during sort broke
...
invariant of array.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-29 14:58:30 +00:00
mame
2a3d7b5992
* revert the previous wrong commit; sorry.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-29 14:40:31 +00:00
mame
7451e34428
* array.c (rb_ary_sort_bang): replacing array during sort broke
...
invariant of array.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-29 14:30:07 +00:00
mame
224471fd57
* test/webrick/utils.rb (start_server): provide a reference to log of
...
webrick.
* test/webrick/test_httpproxy.rb, test/webrick/test_httpauth.rb,
test/webrick/test_cgi.rb, test/webrick/test_httpserver.rb,
test/webrick/test_server.rb, test/webrick/test_filehandler.rb: use
webrick log as an assertion message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-29 11:48:35 +00:00
nobu
3056933cc0
* test/ruby/test_array.rb (test_pack): use utf-8.
...
* test/ruby/test_pack.rb (test_pack_U): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-29 09:40:38 +00:00
nobu
34c5cea9b5
* pack.c (pack_pack): set encoding from packing string and UTF-8 for
...
"U". [ruby-core:19590]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-29 07:41:21 +00:00
takano32
2100e3b631
* complex.c (imp1, imp2): should declare type.
...
[BUG] at IA-64
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-29 06:45:26 +00:00
nobu
1b95e95ff2
* common.mk (revision.h): have to be updated daily or by non-trivial
...
commits.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-29 05:36:53 +00:00
knu
c93ac5311d
* README, README.ja: Update the portability section.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-29 04:20:42 +00:00
knu
6955f6977a
* configure.in (rb_cv_lib_xpg4_needed): Drop legacy FreeBSD
...
support regarding libxpg4. Those old versions of FreeBSD
shipped with the library don't have a working pthread library
anyway.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-29 04:05:15 +00:00
nobu
3cdf3ac9c9
* configure.in (dln-a-out): cannot make shared library nor work with
...
ELF. [ruby-core:19571]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-29 02:51:00 +00:00
usa
4542baa983
* win32/win32.c (rb_w32_open): shouldn't seek here.
...
* win32/win32.c (rb_w32_write): write to the end of the file when
FAPPEND is specified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-29 02:01:19 +00:00
nobu
bc4bc3a80f
* ruby.c (load_file_internal): use ASCII-8BIT to prevent conversion.
...
[ruby-core:19579]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-29 00:30:09 +00:00
nobu
bd92ab89c0
* ruby.c (load_file_internal): cache common interned IDs.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-29 00:23:04 +00:00
tadf
f68296698a
* complex.c: uses macro in declarations.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 15:45:29 +00:00
usa
746a09406e
* win32/win32.c (rb_w32_open): need to seek to the end of the file when
...
O_APPEND is specified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 15:27:06 +00:00
tadf
f019cd5b79
inserted a newline.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 15:19:53 +00:00
svn
7006082a68
* 2008-10-29
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 15:10:45 +00:00
tadf
2d5a281c98
* math.c (rb_math_{atan2,cos,cosh,hypot,log,sin,sinh,sqrt}): added.
...
* complex.c: follows the above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 15:10:40 +00:00
naruse
b87182fa7f
* ext/nkf/nkf-utf8/nkf.c (kanji_convert): output unicode chars.
...
[ruby-dev:36957]
* ext/nkf/nkf-utf8/nkf.c (numchar_getc): increase buffer size.
reported and patched at [ruby-dev:36957] by mame.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 14:30:17 +00:00
yugui
d8c68028fa
* test/ruby/test_proc.rb: filled all patterns for testing
...
vm_yield_setup_args.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 14:18:10 +00:00
tadf
1171a940f1
typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 14:14:52 +00:00
tadf
2b72e549a7
* complex.c: continues to support canonicalization *unofficially*
...
for an odd library mathn for the time being (only 1.9.x).
since grand mathn is must be very very special library for us.
* rational.c: ditto.
* ext/mathn/*/*: follow the above changes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 14:11:08 +00:00
mame
d563f1680c
* parse.y (parser_yylex): check EOF explicitly.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 12:34:13 +00:00
usa
45ea81a492
* test/ruby/test_require.rb (test_require_too_long_filename): too long
...
commandline may be rejected by OS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 12:03:14 +00:00
usa
7994aaa1f3
* test/ruby/test_io_m17n.rb (test_getc_invalid3): should set binmode if enc is
...
not compatible with ASCII.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 12:01:46 +00:00
usa
f3ac3e8774
* io.c (extract_binmode): new function to extract binmode/textmode
...
options from hash.
* io.c (rb_io_extract_modeenc): use above function.
* io.c (rb_io_s_pipe): recognize binmode/textmode options.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 12:00:42 +00:00
usa
68b9bc4201
* test/ruby/test_io.rb (test_sysopen): should specify the mode of IO::for_fd
...
if F_GETFL is not available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 11:23:52 +00:00
usa
7d934c47d1
* io.c (make_readconv): now can specify the size of cbuf.
...
* io.c (read_all, appendline, io_getc, rb_io_ungetc): follow above
change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 11:18:28 +00:00
usa
2f4e4a841d
* win32/win32.c (rb_w32_pipe_exec): internal fds should be always
...
binmode.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 10:01:26 +00:00
usa
04e19b5587
* test/ruby/test_io.rb (test_copy_stream, test_copy_stream_socket): skip some
...
tests if there isn't IO#nonblock=.
* test/ruby/test_io.rb (test_close_on_exec): skip if there isn't
IO#close_on_exec=.
* test/ruby/test_io.rb (test_bytes, test_readbyte): depend on binmode.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 09:41:30 +00:00
usa
fdc4287e87
* test/ruby/test_file.rb (test_*_extended_file): forgot to set mode.
...
* test/ruby/test_file.rb (test_para_gets_extended_file): output file sould be
binmode.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 09:34:37 +00:00
yugui
2e376a1b96
* tool/make-snapshot.rb: merged from ruby_1_9_1.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 08:21:57 +00:00
yugui
e3e645f43a
merged r19975 and r19978 from ruby_1_9_1 into trunk.
...
* gem_prelude.rb: considers --program-suffix and prefix configure
options.
* lib/rubygems/defaults.rb: ditto.
* test/rubygems/test_gem.rb (@default_dir_re): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 08:21:50 +00:00
nobu
b39833e1d7
* tool/make-snapshot: use String#bytesize.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 07:13:39 +00:00