summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* fix typos.akr2008-01-251-23/+23
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_getline_fast): don't care ASCII incompatible encoding.akr2008-01-252-33/+44
| | | | | | | | | | (prepare_getline_args): generate a newline according to IO encoding when necessary. (rb_io_getline_1): call rb_io_getline_fast only for ASCII compatible encoding. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-01-26usa2008-01-251-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test.akr2008-01-251-0/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_buf_cat_ascii): use rb_enc_cr_str_buf_cat.akr2008-01-252-20/+28
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (version.$(OBJEXT)): depends on $(srcdir)/revision.h.nobu2008-01-252-2/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/ifchange: commit miss.nobu2008-01-251-0/+16
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (revision.h): extracts revision number with ``svn info''.nobu2008-01-256-20/+65
| | | | | | | | | | | | | | * common.mk (up): target to update from the repository. * Makefile.in, {win,bcc}32/Makefile.sub (IFCHANGE): tool to update a file if changed. * tool/ifchange: for unixen. * win32/ifchange.bat: some fix git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (load_file): set default to ASCII-8BIT explicitly if -Knobu2008-01-252-4/+7
| | | | | | | option is not given. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/intern.h (rb_str_buf_cat_ascii): declared.akr2008-01-254-1/+34
| | | | | | | | | | * string.c (rb_str_buf_cat_ascii): defined. * re.c (rb_reg_s_union): use rb_str_buf_cat_ascii to support ASCII incompatible encoding. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (process_options, load_file, rb_load_file): propagates scriptnobu2008-01-252-1/+11
| | | | | | | encoding by -K to libraries. [ruby-dev:33156] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (process_options): set encoding of -e option from -E optionnobu2008-01-252-1/+4
| | | | | | | if they are compatible. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (cmdline_arguments): split argc and argv from cmdline_options.nobu2008-01-252-9/+18
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (process_options): not set encoding of -e option from -Enobu2008-01-252-2/+23
| | | | | | | option if they are not compatible. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* combinational tests for printf.akr2008-01-251-0/+300
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (proc_options, process_options, load_file): shouldn't effectusa2008-01-252-17/+44
| | | | | | | | --encoding to script encoding. [ruby-dev:33169] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test for Regexp.union.akr2008-01-251-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: fixed format.nobu2008-01-251-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * */*.bat: changed to text/plain.nobu2008-01-250-0/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * */*.bat: set svn:mime-type to text/batch.nobu2008-01-252-3/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c (enum_one, enum_take_while, enum_drop_while): fix documents.mame2008-01-242-5/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (reg_fragment_setenc_gen): associate ASCII-8BIT only ifakr2008-01-242-4/+18
| | | | | | | str has only ASCII characters. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_m17n.rb: commit miss.usa2008-01-241-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_m17n.rb: follow to the following changes.usa2008-01-242-10/+12
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parser.y (parser_str_new): automatically update string literal'susa2008-01-242-7/+30
| | | | | | | | | | | | | | encoding from US-ASCII to ASCII-8BIT when script encoding is US-ASCII and the string includes non-ascii bytes. [ruby-dev:33348] * parser.y (reg_fragment_check_gen, reg_compile_gen): automatically update regexp literal's encoding from US-ASCII to ASCII-8BIT when script encoding is US-ASCII, the regexp has no kcode option and the regexp includes non-ascii bytes. [ruby-dev:33353] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri/generic.rb (URI::Generic::inspect): use Kernel#to_s insteadnobu2008-01-242-1/+7
| | | | | | | object_id with printf. [ruby-dev:33347] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sprintf.c (remove_sign_bits): returns pointer to the first char tonobu2008-01-243-33/+36
| | | | | | | | | | be used, instead of copying. * sprintf.c (rb_str_format): negative indicator dots should come before sign digits always. [ruby-dev:33224] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/encoding.h (rb_enc_is_newline): parenthesized arguments.nobu2008-01-242-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_fixed_encoding_p): no need to treat ASCII-8BIT specially.usa2008-01-242-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_initialize): 7bit clean regexp should be US-ASCII.usa2008-01-242-1/+6
| | | | | | | | [ruby-dev:33346] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix last commit.akr2008-01-241-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_getline_fast): the end point of left_char_head()matz2008-01-242-1/+8
| | | | | | must be the last character. [ruby-cvs:22445] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (reg_fragment_setenc_gen): recognize regexp with option n asusa2008-01-242-0/+9
| | | | | | | | as ASCII-8BIT instead of US-ASCII. [ruby-dev:33339] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* The [ruby-dev:32746] problem is re-introduced. akr2008-01-241-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test for [ruby-dev:33224].akr2008-01-241-0/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (sort_1): remove ary_sort_check(). in-place sort keepmatz2008-01-242-44/+18
| | | | | | | | original elements even when it's modified. * array.c (sort_2): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test for [ruby-dev:33264].akr2008-01-241-0/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (collect_bang_i): use rb_ary_store() to avoid potentialmatz2008-01-242-129/+58
| | | | | | | | | memory corruption. a patch from Yusuke Endoh <mame@tsg.ne.jp> in [ruby-dev:33328]. * array.c (ITERATE): remove unnecessary macro. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (make_time_t): revert round trip test. [ruby-dev:33058]akr2008-01-242-13/+20
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_enc_cr_str_buf_cat): ASCII incompatible encoding isakr2008-01-243-1/+20
| | | | | | | not compatible with any other encoding. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (STR_NEW0): set encoding as US-ASCII.naruse2008-01-232-4/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/text.rb, lib/rubygems/open-uri.rb, lib/open-uri.rb,naruse2008-01-236-6/+12
| | | | | | | test/logger/test_logger.rb, test/ruby/test_regexp.rb: fix tests. [ruby-dev:33336] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_each_line): use memchr(3) for faster newlinematz2008-01-234-46/+85
| | | | | | | | | | search. * io.c (appendline): remove unused arguments * io.c (rb_io_getline_fast): make much simpler (and faster). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test for String#end_with?.akr2008-01-231-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insns.def (expandarray): fix stack inc.mame2008-01-234-9/+13
| | | | | | | * bootstraptest/test_knownbug.rb, test_massign.rb: move a fixed test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (proc_optionc): -Kn means ASCII-8BIT.naruse2008-01-232-1/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_str_new, rb_intern3): ascii only string literal is US-ASCII.naruse2008-01-232-3/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.{c, h} (rb_usascii_encoding): added.naruse2008-01-233-0/+14
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-01-24usa2008-01-231-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix previous change.akr2008-01-231-2/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e