1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/tk/sample
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
..
demos-en * ext/tk/tcltklib.c: make SEGV risk lower at exit. 2006-07-10 09:52:30 +00:00
demos-jp * encoding.c: provide basic features for M17N. 2007-08-25 03:29:39 +00:00
images * ext/tk/sample/images/teapot.ppm: fix the broken file. [ruby-dev:30226] 2007-01-31 05:37:31 +00:00
msgs_rb * ext/tk/lib/tk/*: untabify 2004-10-11 04:51:21 +00:00
msgs_rb2 * renewal Ruby/Tk 2004-05-01 16:09:54 +00:00
msgs_tk * renewal Ruby/Tk 2004-05-01 16:09:54 +00:00
tcltklib * object.c (rb_mod_attr): make Module#attr to be an alias to 2006-07-20 17:36:36 +00:00
tkextlib * encoding.c (rb_enc_mbclen): make it never fail. 2007-12-08 02:50:43 +00:00
24hr_clock.rb * ext/tk/sample/24hr_clock.rb: a new example about handling of canvas items. 2005-11-15 07:51:30 +00:00
binding_sample.rb * ext/tk/lib/tk/*: untabify 2004-10-11 04:51:21 +00:00
bindtag_sample.rb * ext/tk/lib/tk/*: untabify 2004-10-11 04:51:21 +00:00
binstr_usage.rb * renewal Ruby/Tk 2004-05-01 16:09:54 +00:00
btn_with_frame.rb * renewal Ruby/Tk 2004-05-01 16:09:54 +00:00
cd_timer.rb * ext/tk/lib/tk/timer.rb (TkTimer): forgot to clear @return_value 2005-03-14 10:42:46 +00:00
cmd_res_test.rb * ext/tk/lib/tk/*: untabify 2004-10-11 04:51:21 +00:00
cmd_resource * ext/tk/lib/tk/image.rb: bug fix 2004-10-04 03:56:00 +00:00
editable_listbox.rb * ext/tk/lib/tk/itemconfig.rb: bug fix on 'itemconfiginfo' method, and 2006-11-06 06:56:37 +00:00
encstr_usage.rb * ext/tk/lib/tk/*: untabify 2004-10-11 04:51:21 +00:00
irbtk.rb * ext/tk/tcltklib.c: enforce thread-check and exception-handling to 2005-03-02 07:06:52 +00:00
irbtkw.rbw * ext/tk/sample/irbtkw.rbw: fails to exit process. 2007-03-06 02:56:32 +00:00
iso2022-kr.txt * renewal Ruby/Tk 2004-05-01 16:09:54 +00:00
menubar1.rb * ext/tcltklib/extconf.rb: [EXPERIMENTAL] MacOS X (darwin) support 2004-06-12 15:25:49 +00:00
menubar2.rb * ext/tk/lib/tk/*: untabify 2004-10-11 04:51:21 +00:00
multi-ip_sample.rb * ext/tk/lib/tk/*: untabify 2004-10-11 04:51:21 +00:00
multi-ip_sample2.rb * ext/tk/lib/tk/*: untabify 2004-10-11 04:51:21 +00:00
optobj_sample.rb * ext/tk/lib/tk/*: untabify 2004-10-11 04:51:21 +00:00
propagate.rb * ext/tk/lib/tk/*: untabify 2004-10-11 04:51:21 +00:00
remote-ip_sample.rb * ext/tk/lib/tk/*: untabify 2004-10-11 04:51:21 +00:00
remote-ip_sample2.rb * ext/tk/lib/tk/*: untabify 2004-10-11 04:51:21 +00:00
resource.en * tcltklib.c (lib_mainloop_core): fixed signal-trap bug 2003-09-07 07:10:44 +00:00
resource.ja * tcltklib.c (lib_mainloop_core): fixed signal-trap bug 2003-09-07 07:10:44 +00:00
safe-tk.rb * ext/tk/lib/tk/*: untabify 2004-10-11 04:51:21 +00:00
scrollframe.rb * ext/tk/lib/tkextlib/SUPPORT_STATUS: update to support libraries in 2005-12-11 14:59:49 +00:00
tkalignbox.rb * ext/tk/lib/tk/*: untabify 2004-10-11 04:51:21 +00:00
tkballoonhelp.rb * ext/tk/sample/tkballoonhelp.rb: [bug fix] couldn't add to a widget 2006-01-12 02:56:11 +00:00
tkbiff.rb * ext/tk/lib/tk/*: untabify 2004-10-11 04:51:21 +00:00
tkbrowse.rb * ext/tk/lib/tk/*: untabify 2004-10-11 04:51:21 +00:00
tkcombobox.rb * ext/tk/lib/tk/*: untabify 2004-10-11 04:51:21 +00:00
tkdialog.rb * (bug fix) TkEntry#delete 2003-08-02 05:04:30 +00:00
tkfrom.rb * ext/tk/lib/tk/*: untabify 2004-10-11 04:51:21 +00:00
tkhello.rb * ext/tk/lib/tk/*: untabify 2004-10-11 04:51:21 +00:00
tkline.rb * ext/tk/lib/tk/*: untabify 2004-10-11 04:51:21 +00:00
tkmenubutton.rb * ext/tk/lib/tk/*: untabify 2004-10-11 04:51:21 +00:00
tkmsgcat-load_rb.rb * ext/tk/lib/tk/*: untabify 2004-10-11 04:51:21 +00:00
tkmsgcat-load_rb2.rb * ext/tk/lib/tk/*: untabify 2004-10-11 04:51:21 +00:00
tkmsgcat-load_tk.rb * ext/tk/lib/tk/*: untabify 2004-10-11 04:51:21 +00:00
tkmulticolumnlist.rb * ext/tk/lib/tk/*: untabify 2004-10-11 04:51:21 +00:00
tkmultilistbox.rb * ext/tk/lib/tk/*: untabify 2004-10-11 04:51:21 +00:00
tkmultilistframe.rb * ext/tk/lib/tk/*: untabify 2004-10-11 04:51:21 +00:00
tkoptdb-safeTk.rb * ext/tk/lib/tk/*: untabify 2004-10-11 04:51:21 +00:00
tkoptdb.rb * ext/tk/lib/tk/*: untabify 2004-10-11 04:51:21 +00:00
tkrttimer.rb * ext/tk/tcltklib.c (lib_eventloop_ensure): mis-delete a timer handler 2005-03-10 10:13:30 +00:00
tktextframe.rb * ext/tk/lib/tk/*: untabify 2004-10-11 04:51:21 +00:00
tktextio.rb * ext/tk/sample/tktextio.rb: 'hist_size' option causes error. 2007-01-29 19:56:28 +00:00
tktimer.rb * (bug fix) TkEntry#delete 2003-08-02 05:04:30 +00:00
tktimer2.rb * bug fix 2003-07-30 07:15:00 +00:00
tktimer3.rb * (bug fix) TkEntry#delete 2003-08-02 05:04:30 +00:00
tktree.rb * ext/tk/stubs.c: When --enable-tcltk-stubs, the initialize 2005-07-28 09:14:59 +00:00
tktree.tcl * add a new sample script 2004-05-16 21:43:37 +00:00