1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext
akr f1b7e60cb9 * encoding.c (rb_enc_mbclen): make it never fail.
(rb_enc_nth): don't check the return value of rb_enc_mbclen.
  (rb_enc_strlen): ditto.
  (rb_enc_precise_mbclen): return needmore(1) if e <= p.
  (rb_enc_get_ascii): new function for extracting ASCII character.

* include/ruby/encoding.h (rb_enc_get_ascii): declared.

* include/ruby/regex.h (ismbchar): removed.

* re.c (rb_reg_expr_str): use rb_enc_get_ascii.
  (unescape_escaped_nonascii): use rb_enc_precise_mbclen to determine
  the termination of escaped non-ASCII character.
  (unescape_nonascii): use rb_enc_precise_mbclen.
  (rb_reg_quote): use rb_enc_get_ascii.
  (rb_reg_regsub): use rb_enc_get_ascii.

* string.c (rb_str_reverse) don't check the return value of
  rb_enc_mbclen.
  (rb_str_split_m): don't call rb_enc_mbclen with e <= p.

* parse.y (is_identchar): use ISASCII.
  (parser_ismbchar): removed.
  (parser_precise_mbclen): new macro.
  (parser_isascii): new macro.
  (parser_tokadd_mbchar): use parser_precise_mbclen to check invalid
  character precisely.
  (parser_tokadd_string): use parser_isascii.
  (parser_yylex): ditto.
  (is_special_global_name): don't call is_identchar with e <= p.
  (rb_enc_symname_p): ditto.

  [ruby-dev:32455]

* ext/tk/sample/tkextlib/vu/canvSticker2.rb: remove coding cookie
  because the encoding is not UTF-8.  [ruby-dev:32475]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-08 02:50:43 +00:00
..
bigdecimal * include/ruby: moved public headers. 2007-06-10 03:06:15 +00:00
continuation * cont.c: separate Continuation and Fiber from core. 2007-08-25 02:03:44 +00:00
curses * ext/curses/extconf.rb: check macro if cannot find func. 2007-11-15 10:50:34 +00:00
dbm * ext/dbm/extconf.rb: allow multiple candidates for dbm-type. 2006-09-16 07:14:37 +00:00
digest * include/ruby/intern.h: export rb_ivar_foreach. 2007-09-28 06:21:46 +00:00
dl * ext/Win32API/*: removed or moved to ext/dl/win32. 2007-12-03 02:53:13 +00:00
etc * ext/etc/etc.c (etc_getlogin): update documentation to note 2007-08-27 10:15:18 +00:00
fcntl add extconf.h to .cvsignore. 2006-06-24 01:15:08 +00:00
fiber * ext/fiber/fiber.c: modify prototype declaration. 2007-09-27 06:45:03 +00:00
gdbm * parse.y (parser_warning, parser_warn): some error message may 2006-10-14 14:33:10 +00:00
iconv * ext/iconv/iconv.c (iconv_s_list): support NetBSD/Citrus iconv. 2007-12-05 16:04:12 +00:00
io/wait * file.c, gc.c, io.c, ruby.h, rubyio.h, win32/win32.h (rb_io_t): 2007-02-24 10:30:50 +00:00
json * lib/json.rb, lib/json/*: moved to ext/json/lib. 2007-12-04 08:09:44 +00:00
nkf * ext/nkf/lib/kconv.rb (tojis, tosjis, toeuc, toutf8): 2007-12-04 09:06:41 +00:00
openssl * ext/openssl/lib/net/ftptls.rb, ext/openssl/lib/net/telnets.rb: 2007-12-07 11:35:13 +00:00
probeprofiler * blockinlining.c: remove "yarv" prefix. 2007-07-12 04:25:46 +00:00
pty * ext/pty/pty.c (establishShell): handshaking before close slave 2007-08-07 05:58:41 +00:00
racc/cparse * include/ruby: moved public headers. 2007-06-10 03:06:15 +00:00
readline * include/ruby: moved public headers. 2007-06-10 03:06:15 +00:00
ripper * parse.y (parser_yylex): should clear parser->tokp as well. 2007-11-19 07:10:09 +00:00
sdbm * ext/dl/cfunc.c (rb_dlcfunc_call): adjust format. [ruby-dev:31222] 2007-07-15 13:24:39 +00:00
socket rescue Errno::EWOULDBLOCK as well as Errno::EAGAIN in sample code in rdoc. 2007-10-23 07:40:56 +00:00
stringio * ext/stringio/stringio.c (strio_init): separate from strio_initialize 2007-09-21 20:19:51 +00:00
strscan * ext/strscan/strscan.c (strscan_initialize, strscan_getch): use the 2007-09-24 08:56:24 +00:00
syck * ext/syck/rubyext.c (rb_syck_mktime): avoid segmentation fault. 2007-11-30 10:42:40 +00:00
syslog * include/ruby: moved public headers. 2007-06-10 03:06:15 +00:00
tk * encoding.c (rb_enc_mbclen): make it never fail. 2007-12-08 02:50:43 +00:00
win32ole ext/win32ole/win32ole.c (ole_invoke): bug fix. [ruby-talk:279100] 2007-11-17 15:04:55 +00:00
zlib * ext/zlib/zlib.c (gzfile_s_open): use FilePathValue to support 2007-06-08 07:33:59 +00:00
.cvsignore
.document Add digest.c 2006-08-28 02:32:47 +00:00
extmk.rb * ext/extmk.rb (extract_makefile): use dldflags instead of DLDFLAGS to 2007-11-28 05:43:17 +00:00
purelib.rb * ext/purelib.rb: commit miss. 2007-05-22 21:09:22 +00:00
Setup * sprintf.c (rb_str_format): allow %c to print one character 2006-06-09 21:20:17 +00:00
Setup.atheos * ext/Setup*: remove tcltklib. 2005-01-26 05:15:02 +00:00
Setup.dj * ext/Setup*: remove tcltklib. 2005-01-26 05:15:02 +00:00
Setup.emx * ext/Setup*: remove tcltklib. 2005-01-26 05:15:02 +00:00
Setup.nt * ext/Setup*: remove tcltklib. 2005-01-26 05:15:02 +00:00
Setup.x68 * ext/Setup*: remove tcltklib. 2005-01-26 05:15:02 +00:00