summaryrefslogtreecommitdiff
path: root/ext
AgeCommit message (Collapse)Author
2008-02-08* ext/iconv/iconv.c (rb_str_derive): uses rb_str_subseq() for bytenobu
length. [ruby-dev:33653] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-08* ext/iconv/iconv.c (iconv_convert): added toidx argument to setnobu
encoding of successfully converted string. [ruby-dev:33221] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-07* ext/nkf/nkf-utf8/nkf.c (nkf_enc_from_index): BINARY does notmatz
have in-bound encoding index. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-29* common.mk, ext/extmkf.rb: always make encdb.h.naruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-28 * ext/win32ole/win32ole.c (ole_cp2encoding): new function.usa
* ext/win32ole/win32ole.c (ole_wc2vstr, ole_variant2val, fole_missing): set encoding to result. * ext/win32ole/win32ole.c (fole_s_set_code_page, Init_win32ole): set default encoding. [ruby-dev:33433] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-27* ext/nkf/nkf-utf8/nkf.h: set properties.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-27* ext/nkf/nkf.c: raise error when no output encoding is given.naruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-27* ruby-trunk.naruse
* lib/irb/ruby-lex.rb (RubyLex#buf_input): use chars.to_a. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-27* ext/nkf/nkt-utf8: update nkf.naruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-19* ext/win32ole/win32ole.c (ole_set_safe_array): should not usesuke
recursive calling. * test/win32ole/test_win32ole_variant.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-17* ext/stringio/stringio.c (strio_init): use default external encodingnobu
if nothing is given. a patch from sheepman <sheepman AT sheepman.sakura.ne.jp> in [ruby-dev:33159]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-14* ext/nkf/lib/kconv.rb (Kconv.tolocale): argument is str.naruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-12* ext/nkf/nkf.c: rdoc update.naruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-11* ext/nkf/nkf-utf8/nkf.c: fix bug: -m was -m0.naruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-11* ext/nkf/nkf-utf8/nkf.c: update to r1.163.naruse
* ext/nkf/nkf.c: ASCII's canonical name is US-ASCII. * ext/nkf/lib/kconv.rb (Kconv.isjis): force_encoding('BINARY'). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-06* $Date$ keyword removed to avoid inclusion of locale dependentakr
string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-04* ext/digest/lib/digest/hmac.rb (Digest::HMAC#initialize): useakr
String#bytesize to avoid test errors on EUC-JP environment. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-02* util.c (ruby_strtoul): locale independent strtoul is implemented toakr
avoid "i".to_i(36) cause 0 under tr_TR locale. This is newly implemented, not a copy of missing/strtoul.c. * include/ruby/ruby.h (ruby_strtoul): declared. (STRTOUL): defined to use ruby_strtoul. * bignum.c, pack.c, ext/socket/socket.c: use STRTOUL. * configure.in (strtoul): don't check. * missing/strtoul.c: removed. * include/ruby/missing.h (strtoul): removed. * common.mk (strtoul.o): removed. * LEGAL (missing/strtoul.c): removed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-01* ext/nkf/nkf-utf8/{nkf.c, utf8tbl.c}: Update nkf.naruse
* ext/nkf/nkf.c: fix documents. * ext/nkf/lib/kconv.rb: fix documents. (Kconv.is*): use valid_encoding?. (Kconv.isjis): defined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-01* include/ruby/encoding.h (rb_isascii): defined.akr
(rb_isalnum): ditto. (rb_isalpha): ditto. (rb_isblank): ditto. (rb_iscntrl): ditto. (rb_isdigit): ditto. (rb_isgraph): ditto. (rb_islower): ditto. (rb_isprint): ditto. (rb_ispunct): ditto. (rb_isspace): ditto. (rb_isupper): ditto. (rb_isxdigit): ditto. (rb_tolower): ditto. (rb_toupper): ditto. * include/ruby/st.h (st_strcasecmp): declared. (st_strncasecmp): ditto. * st.c (type_strcasehash): use st_strcasecmp instead of strcasecmp. (st_strcasecmp): defined. (st_strncasecmp): ditto. * include/ruby/ruby.h: include include/ruby/encoding.h. (ISASCII): use rb_isascii. (ISPRINT): use rb_isprint. (ISSPACE): use rb_isspace. (ISUPPER): use rb_isupper. (ISLOWER): use rb_islower. (ISALNUM): use rb_isalnum. (ISALPHA): use rb_isalpha. (ISDIGIT): use rb_isdigit. (ISXDIGIT): use rb_isxdigit. (TOUPPER): defined. (TOLOWER): ditto. (STRCASECMP): ditto. (STRNCASECMP): ditto. * dir.c, encoding.c, file.c, hash.c, process.c, ruby.c, time.c, transcode.c, ext/readline/readline.c: use locale insensitive functions. [ruby-core:14662] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-29use EWOULDBLOCK as an example in document.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-28* ext/strscan/strscan.c (str_new): new function for allocate an stringakr
with encoding propagation. (extract_range): use str_new. (extract_beg_len): ditto. (strscan_peek): ditto. (strscan_rest): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-28 * encoding.c (rb_locale_encoding): should check return value fromusa
rb_locale_charmap(). * ruby.c (locale_encoding): removed. * ruby.c (process_options): use rb_locale_encoding() instead of locale_encoding(). * ext/readline/readline.c (readline_readline): use locale encoding instead of input IO's encoding. [ruby-dev:32872] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-28 * ext/readline/readline.c (readline_readline, readline_s_set_input):usa
use mReadline directly because self is not always same. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-28 * ext/readline/readline.c (readline_readline): set encoding to result.usa
* ext/readline/readline.c (readline_s_set_input, Init_readline): save input IO to hidden instance variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-27* ext/socket/socket.c: a patch to support IRIX from Andrewmatz
Thompson <andrew@hijacked.us> in [ruby-core:14447]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-25* ext/json/ext/generator/generator.c (Init_generator): requiresnobu
json/common.rb for GeneratorError, when static linked. a patch from Kenta Murata <muraken AT gmail.com> in [ruby-dev:32789]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-25* ext/openssl/ossl_ssl.c: Only show a warning if the default technorama
DH callback is actually used. * ext/openssl/ossl_rand.c: New method: random_add(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-25 * ext/dl/depend: add dependencies. [ruby-dev:32760]usa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-25* include/ruby/ruby.h, thread.c: rename is_ruby_native_thread() toko1
ruby_native_thread_p(). * ext/tk/tcltklib.c: apply it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-25* enum.c (enum_yield): when multiple values yielded from #eachmatz
pack them into an array. [ruby-dev:32708] * enum.c: all method but all?, any?, one? and none? passed packed multiple values to the block. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-23* ext/nkf/nkf.c (rb_nkf_enc_get): use rb_define_dummy_encoding.naruse
* ext/nkf/nkf.c (Init_nkf): use rb_nkf_enc_get("ASCII"). * ext/nkf/nkf-utf8/nkf.c: Update 1.161. * ext/nkf/nkf-utf9/config.h: default output encoding is now UTF-8. * ext/nkf/lib/kconv.rb (Kconv.kconv): replace Encoding#name by Encoding#to_s. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-23ext/nkf/nkf.c follow previous rb_ascii_encoding renaming. akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22* ext/syck/rubyext.c (syck_genericresolver_node_import): shouldmatz
not set instance variable "@kind" before initializing it. [ruby-dev:32677] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22* ext/probeprofiler/: removed.ko1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22* ext/nkf/nkf.c (Init_nkf): use rb_ascii_encoding() fornaruse
rb_nkf_enc_get("US-ASCII"). * if use rb_nkf_enc_get("US-ASCII"), ruby will crash - this is bug? git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22* ext/nkf/nkf-utf8.c: Update nkf.c rev:1.157.naruse
* ext/nkf/nkf.c (rb_nkf_enc_get): replicate proper based encoding. * ext/nkf/kconv.c (Kconv#kconv, to*): use self.encoding as from_enc when from_enc isn't given. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22* ext/openssl/lib/net/ssl.rb (OpenSSL::SSL::SSLContext.build): removed.gotoyuzo
* ext/openssl/lib/net/ssl.rb (OpenSSL::SSL::SSLContext#set_params): new method to set suitable SSL parameters. * lib/net/pop.rb, lib/net/http.rb, lib/net/imap.rb, test/openssl/test_ssl.rb: follow above change. * test/net/http/test_https.rb: refine error case. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 * parse.y (parser_str_new, rb_intern3): rb_default_encoding() renamed.usa
* ext/nkf/nkf.c (rb_nkf_putchar): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 * ext/tk/sample/tkextlib/vu/canvSticker2.rb,usa
ext/tk/sample/demos-{en,jp}/bind.rb: fix typo. [ruby-dev:32668] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21Ruby/Tk :: provisional support on Ruby-VM and Tcl/Tk8.5.nagai
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21* ext/nkf/nkf-utf8/config.h (MIME_DECODE_DEFAULT, X0201_DEFAULT):naruse
defined as FALSE. nkf and kconv don't decode MIME encoded string and don't convert JIS X 0201 Katakana. * test/nkf/test_kconv.rb: fix tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21* ext/bigdecimal/bigdecimal.c (VpMidRound): Round method bugmatz
pointed by Ryan Platte fixed(Patch to the patch from "NATORI Shin"). [ruby-talk:273360] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21* regerror.c, string.c, io.c, lib/getoptlong.rb, lib/net/imap.rb,akr
compile.c, sprintf.c, parse.y, ext/win32ole/win32ole.c, ext/tk/sample/demos-en/entry3.rb, ext/tk/lib/tcltk.rb, ext/openssl/ossl_bn.c, numeric.c, vm.c, benchmark/bm_so_meteor_contest.rb, bignum.c, ruby.c: don't "illegal" for non law violation context. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-20* ext/openssl/lib/openssl/ssl.rb (OpenSSL::SSL::SSLContext.build):gotoyuzo
enable CRL checking on default cert store. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19* ext/nkf/nkf-utf8/nkf.c: Updated.naruse
* ext/nkf/nkf.c (rb_nkf_enc_get): added. (find encoding or replicate default encoding) * ext/nkf/nkf.c (NKF::<ENCODING>): redefine encoding constant. * ext/nkf/lib/kconv.rb (Kconv::<ENCODING>): redefined as Encoding. * ext/nkf/lib/kconv.rb: refactoring. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19* ext/nkf/nkf.c (NKF::_ENCODING): removed.naruse
* ext/nkf/nkf.c (rb_nkf_kconv): renamed to rb_nkf_convert. * ext/nkf/nkf.c (rb_nkf_convert): set encoding. * ext/nkf/nkf.c (rb_nkf_guess1): removed. * ext/nkf/nkf.c (rb_nkf_guess2): renamed to rb_nkf_guess. * ext/nkf/nkf.c (rb_nkf_guess): guess method now returns encoding object. * ext/nkf/nkf-utf8/nkf.c: Update to nkf 2.0.8 2007-12-19. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-18fix typo in last commit.gotoyuzo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-18* ext/openssl/lib/openssl/ssl.rb (OpenSSL::SSL::SSLServer#shutdown): gotoyuzo
new method which calls TCPSocket#shutdown of the underlying socket. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-18 * dl/win32/lib/win32/sspi.rb: use pack/unpack("m") instead of base64usa
library which was already removed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e