mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/tk/tcltklib.c: bug fix on treating Unicode strings.
* ext/tk/tcltklib.c: add methods to treat encoding mode. * ext/tk/MANUAL_tcltklib.eng: add description of TclTkLib#encoding, encoding_system, and so on. * ext/tk/MANUAL_tcltklib.eucj: ditto. * ext/tk/tkutil/tkutil.c: fail to create a Tcl's list string from an array including multiple kind of encoded strings. * ext/tk/lib/tk.rb: ditto. * ext/tk/lib/multi-tk.rb: 2nd arg of _{to|from}UTF8 is omissible. * ext/tk/lib/remote-tk.rb: ditto. * ext/tk/lib/tk.rb: override TclTkLib#encoding and encoding= to use TkCore::INTERP.encoding and encoding=. * ext/tk/lib/tk.rb: when "require 'tk'" and $KCODE=='NONE', check DEFAULT_TK_ENCODING to decide Ruby/Tk's system encoding mode. * ext/tk/lib/tk/encodedstr.rb: check both of Tk.encoding and Tk.encoding_system. Tk.encoding has higher priority. * ext/tk/lib/tk/optiondb.rb: ditto. * ext/tk/lib/tk/spinbox.rb: ditto. * ext/tk/lib/tk/validation.rb: ditto. * ext/tk/lib/tk/namespace.rb: arguemnts for TclTkIp#_merge_tklist should be UTF-8 strings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6556fb4f00
commit
e3849ae987
13 changed files with 375 additions and 94 deletions
|
@ -1,5 +1,5 @@
|
|||
(tof)
|
||||
2004/03/28 Hidetoshi NAGAI
|
||||
2005/07/05 Hidetoshi NAGAI
|
||||
|
||||
This document discribes about the 'tcltklib' library. Although there
|
||||
is the 'tcltk' library (tcltk.rb) under this directory, no description
|
||||
|
@ -126,7 +126,7 @@ module TclTklib
|
|||
: defined as 0.
|
||||
|
||||
[module methods]
|
||||
mainloop(check_root = true)
|
||||
mainloop(check_root = true)
|
||||
: Starts the eventloop. If 'check_root' is true, this method
|
||||
: doesn't return when a root widget exists.
|
||||
: If 'check_root' is false, doen't return by the other
|
||||
|
@ -227,8 +227,8 @@ module TclTklib
|
|||
: Convert the argument to a valid Tcl list element with
|
||||
: Tcl/Tk's library function.
|
||||
|
||||
_toUTF8(str, encoding)
|
||||
_fromUTF8(str, encoding)
|
||||
_toUTF8(str, encoding=nil)
|
||||
_fromUTF8(str, encoding=nil)
|
||||
: Call the function (which is internal function of Tcl/Tk) to
|
||||
: convert to/from a UTF8 string.
|
||||
|
||||
|
@ -239,6 +239,16 @@ module TclTklib
|
|||
: _subst_Tcl_backslash method parses all backslash sequence.
|
||||
: _subst_UTF_backslash method parses \uhhhh only.
|
||||
|
||||
encoding_system
|
||||
encoding_system=(encoding)
|
||||
: Get and set Tcl's system encoding.
|
||||
|
||||
encoding
|
||||
encoding=(encoding)
|
||||
: alias of encoding_system / encoding_system=
|
||||
: ( probably, Ruby/Tk's tk.rb will override them )
|
||||
|
||||
|
||||
class TclTkIp
|
||||
[class methods]
|
||||
new(ip_name=nil, options='')
|
||||
|
@ -322,8 +332,8 @@ class TclTkIp
|
|||
: to _eval and regist the command once, after that, the
|
||||
: command can be called by _invoke.
|
||||
|
||||
_toUTF8(str, encoding)
|
||||
_fromUTF8(str, encoding)
|
||||
_toUTF8(str, encoding=nil)
|
||||
_fromUTF8(str, encoding=nil)
|
||||
: Call the function (which is internal function of Tcl/Tk) to
|
||||
: convert to/from a UTF8 string.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue