1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
Commit graph

9 commits

Author SHA1 Message Date
nobu
5172e595c9 * ext/iconv/iconv.c (iconv_convert): append unchanged portion
after overflow.  [ruby-dev:21006]

* ext/iconv/extconf.rb: check if iconv() 2nd argument is const.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-30 01:31:43 +00:00
nobu
0770898bb9 * ext/iconv/iconv.c (check_iconv): check if Iconv instance.
* ext/iconv/iconv.c (iconv_convert): stringify argument.

* ext/iconv/iconv.c (iconv_failure_initialize): limit
  inspect message.  [ruby-dev:20785]

* ext/iconv/iconv.c (rb_str_derive): share with original
  string if possible.  [ruby-dev:20785]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-23 01:11:20 +00:00
nobu
3b1e7ac785 * ext/iconv/charset_alias.rb, ext/iconv/extconf.rb: make wrapper
script which maps charset names.  [ruby-dev:20625]

* ext/iconv/iconv.c (charset_map): charset name map.

* ext/iconv/iconv.c (iconv_dfree): no exception while
  finalization.

* ext/iconv/iconv.c (iconv_s_conv): new method Iconv.conv.
  [ruby-dev:20588]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-18 19:51:42 +00:00
matz
f595d5b0d2 * array.c (rb_ary_values_at): new method to replace select(index..).
* hash.c (rb_hash_values_at,env_values_at): ditto.

* re.c (match_values_at): ditto.

* struct.c (rb_struct_values_at): ditto.

* re.c (match_select): add iterator behavior.
	* ext/curses/curses.c, ext/digest/sha2/sha2.c, ext/iconv/iconv.c,
	  ext/racc/cparse/cparse.c: include "ruby.h" at the top to shut up
	  "_FILE_OFFSET_BITS redefined" warning on Solaris.

* class.c (rb_class_protected_instance_methods): now gives
  warnings to show migration path.  The default will be reversed
  on Jan 2004.

* numeric.c (num_step): "1.1.step(1.5,0.1)" to work.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-04 16:03:24 +00:00
nobu
3780ede6ef * ext/curses/curses.c, ext/digest/digest.c, ext/dl/handle.c,
ext/dl/ptr.c, ext/dl/sym.c, ext/gdbm/gdbm.c, ext/iconv/iconv.c,
  ext/stringio/stringio.c, ext/strscan/strscan.c,
  ext/tcltklib/tcltklib.c, ext/win32ole/win32ole.c:
  use rb_define_alloc_func().


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-12-20 11:23:40 +00:00
matz
253581c432 * re.c (rb_reg_s_quote): # also should be quoted.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-05-07 08:32:01 +00:00
nobu
ba90943088 * ext/iconv/iconv.c (iconv_try): should initialize exceptions
properly. (ruby-bugs-ja:PR#232)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-05-07 07:09:02 +00:00
nobu
23beb1a9dd * ext/iconv/iconv.c: fixed document, Iconv#new is no longer an
iterator. thanks to Tanaka Akira <akr@m17n.org>.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-03-15 05:05:34 +00:00
nobu
5fab414c02 Initial revision
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-03-14 13:10:57 +00:00