1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib/irb
yugui 5c1bd53c92 * lib/irb/init.rb (IRB.opt_parse): (M17N) adds -U and -E as command
line options. [ruby-dev:37161]. Fixes #711.
  improved long optinos.

* lib/irb/init.rb (IRB.set_encoding): new subroutine for IRB.opt_parse

* lib/irb/input-method.rb (IRB::StdioInputMethod): (M17N) regards
  scripts that user types as encoded in the external_encoding.

* lib/irb/input-method.rb (IRB::ReadlineInputMethod): ditto.

* lib/irb/input-method.rb (IRB::FileInputMethod): (M17N) respects
  magic comment.

* lib/irb/help.rb (IRB.print_usage): (M17N) respects magic comment
  in the resource file.

* lib/irb/lc/help-message: adds -U and -E.

* lib/irb/lc/ja/help-message: ditto. re-encoded from ISO-2022-JP into UTF-8.

* lib/irb/lc/ja/encoding_aliases.rb: new file. provides Japanese specific
  character encoding name table for backward compatibility.

* lib/irb/lc/ja/error.rb: re-eoncoded from ISO-2022-JP into UTF-8.
  magic comment.

* lib/irb/locale.rb: integrated with Ruby 1.9's M17N support.

* lib/irb/magic-file.rb: new file. utility to handle files with magic
  comment and opens in the correct encoding.

* lib/irb/ruby-lex.rb (RubyLex#each_top_level_statement): recovers
  character encoding for a statement after it lexed so that irb can
  eval the statement in correct encoding.

* lib/irb/src_encoding.rb: new file. utility.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-18 13:09:26 +00:00
..
cmd * lib/irb/cmd/help.rb: should be updated for new ri structure. 2008-03-12 18:13:48 +00:00
ext * lib/optparse/version.rb: remove variable shadowing to stop 2008-12-18 07:54:50 +00:00
lc * lib/irb/init.rb (IRB.opt_parse): (M17N) adds -U and -E as command 2008-12-18 13:09:26 +00:00
completion.rb * lib/optparse/version.rb: remove variable shadowing to stop 2008-12-18 07:54:50 +00:00
context.rb * lib/irb/irb/ext/save-history.rb: change load_history using File.expand_path. see [ruby-dev:36660]. Thanks Kouhei Sutou. 2008-10-04 03:26:16 +00:00
extend-command.rb * lib/irb/extend-command.rb (def_extend_command): check number of 2008-08-25 13:41:11 +00:00
frame.rb * $Date$ keyword removed to avoid inclusion of locale dependent 2008-01-06 15:49:38 +00:00
help.rb * lib/irb/init.rb (IRB.opt_parse): (M17N) adds -U and -E as command 2008-12-18 13:09:26 +00:00
init.rb * lib/irb/init.rb (IRB.opt_parse): (M17N) adds -U and -E as command 2008-12-18 13:09:26 +00:00
input-method.rb * lib/irb/init.rb (IRB.opt_parse): (M17N) adds -U and -E as command 2008-12-18 13:09:26 +00:00
locale.rb * lib/irb/init.rb (IRB.opt_parse): (M17N) adds -U and -E as command 2008-12-18 13:09:26 +00:00
magic-file.rb * lib/irb/init.rb (IRB.opt_parse): (M17N) adds -U and -E as command 2008-12-18 13:09:26 +00:00
notifier.rb * lib/rdoc.rb: massive spelling correction patch from Evan Farrar 2008-06-04 09:37:38 +00:00
output-method.rb * $Date$ keyword removed to avoid inclusion of locale dependent 2008-01-06 15:49:38 +00:00
ruby-lex.rb * lib/irb/init.rb (IRB.opt_parse): (M17N) adds -U and -E as command 2008-12-18 13:09:26 +00:00
ruby-token.rb * $Date$ keyword removed to avoid inclusion of locale dependent 2008-01-06 15:49:38 +00:00
slex.rb * lib/rdoc.rb: massive spelling correction patch from Evan Farrar 2008-06-04 09:37:38 +00:00
src_encoding.rb * lib/irb/init.rb (IRB.opt_parse): (M17N) adds -U and -E as command 2008-12-18 13:09:26 +00:00
version.rb * $Date$ keyword removed to avoid inclusion of locale dependent 2008-01-06 15:49:38 +00:00
workspace.rb * lib/irb.rb (IRB::Irb::eval_input): SyntaxError should not be 2008-03-04 12:37:05 +00:00
ws-for-case-2.rb * $Date$ keyword removed to avoid inclusion of locale dependent 2008-01-06 15:49:38 +00:00
xmp.rb * $Date$ keyword removed to avoid inclusion of locale dependent 2008-01-06 15:49:38 +00:00