summaryrefslogtreecommitdiffstats
path: root/ext/iconv
Commit message (Collapse)AuthorAgeFilesLines
...
* * io.c (read_all): should return given string even if data read ismatz2003-12-101-2/+1
| | | | | | | empty. [ruby-dev:22207] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add iconv.rb and config.charset.akr2003-12-071-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* sort aliases.akr2003-12-071-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/iconv/iconv.c (map_charset): make case sensitive.akr2003-12-072-5/+4
| | | | | | | | ext/iconv/charset_alias.rb (charset_alias): don't ignore config.charset's information. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/iconv/iconv.c (iconv_failure_initialize): conform withnobu2003-10-021-43/+49
| | | | | | | | | | | orthodox initialization method. * ext/iconv/iconv.c (iconv_fail): initialize exception instance from the class, and do not share instance variables with the others. [ruby-dev:21470] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/iconv/iconv.c (iconv_fail): now yield erred substring, andnobu2003-10-021-7/+33
| | | | | | | | | | | set error object to $!. * ext/iconv/iconv.c (iconv_convert): error handler block should return appended part and the rest. if rest is nil, the conversion stops. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/iconv/iconv.c (map_charset): use lower case keys.nobu2003-09-012-12/+41
| | | | | | | | | | | | | | | | | * ext/iconv/iconv.c (iconv_fail): just yield error and return the result if a block is given. * ext/iconv/iconv.c (iconv_convert): yield error and append the result if a block is given. * ext/iconv/charset_alias.rb (charset_alias): optional third argument. * ext/iconv/charset_alias.rb (charset_alias): use CP932 instead of SHIFT_JIS on cygwin. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/iconv/iconv.c (iconv_convert): append unchanged portionnobu2003-07-302-1/+17
| | | | | | | | | after overflow. [ruby-dev:21006] * ext/iconv/extconf.rb: check if iconv() 2nd argument is const. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/iconv/iconv.c (check_iconv): check if Iconv instance.nobu2003-07-231-34/+59
| | | | | | | | | | | | | * 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: http://svn.ruby-lang.org/repos/ruby/trunk@4118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/iconv/charset_alias.rb, ext/iconv/extconf.rb: make wrappernobu2003-07-184-5/+130
| | | | | | | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@4096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_values_at): new method to replace select(index..).matz2003-05-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | * 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: http://svn.ruby-lang.org/repos/ruby/trunk@3754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c, ext/digest/digest.c, ext/dl/handle.c,nobu2002-12-201-1/+1
| | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@3193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: modify program_prefix only if specifiedeban2002-09-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | --program-prefix. * configure.in: don't generate ext/extmk.rb. * Makefile.in: execute directly $(srcdir)/ext/extmk.rb. remove -Cext option, "Dir::chdir 'ext'" in ext/extmk.rb. * {win32,bccwin32}/Makefile.sub: ditto. * instruby.rb: ditto. * ext/extmk.rb: renamed from ext/extmk.rb.in. * lib/mkmf.rb (module Logging): create log files (mkmf.log) in each extension module directories. * ext/extmk.rb: ditto. * lib/mkmf.rb (macro_defined?): new method. * ext/.cvsignore: remove extmk.rb. * ext/*/.cvsignore: add "*.def". git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_s_quote): # also should be quoted.matz2002-05-071-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/iconv/iconv.c (iconv_try): should initialize exceptionsnobu2002-05-071-7/+10
| | | | | | | properly. (ruby-bugs-ja:PR#232) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* copied from ext/etc.nobu2002-04-181-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest: add depend file.nobu2002-03-181-0/+1
| | | | | | | | | | | | | | | | | | | * ext/digest/md5: ditto. * ext/digest/rmd160: ditto. * ext/digest/sha1: ditto. * ext/digest/sha2: ditto. * ext/iconv/MANIFEST: ditto. * ext/stringio/MANIFEST: ditto. * ext/syslog: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/iconv/extconf.rb: workaround for GNU libiconv.eban2002-03-181-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/iconv/depend: added.nobu2002-03-171-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/iconv/iconv.c: fixed document, Iconv#new is no longer annobu2002-03-151-4/+5
| | | | | | | iterator. thanks to Tanaka Akira <akr@m17n.org>. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Initial revisionnobu2002-03-143-0/+745
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e