summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-27 08:58:03 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-27 08:58:03 +0000
commit173f1e1563f5861de78b2bc4e43cd30ea19400c7 (patch)
tree2ea7354ed2f9fbd5f728a7c3445b2eb94f8ff629
parentefd7504d44078af85a2ca6c632c18569bc562928 (diff)
* lib/weakref.rb, lib/irb/ruby-lex.rb, lib/irb/lc/error.rb, enc/trans/japanese.c:
change "illegal" to "invalid" in a context which doesn' t against a law. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog8
-rw-r--r--enc/trans/japanese.c2
-rw-r--r--lib/irb/lc/error.rb2
-rw-r--r--lib/irb/ruby-lex.rb2
-rw-r--r--lib/weakref.rb4
5 files changed, 10 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 26f5606c58..85348cc4b0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,9 @@
-Thu Dec 27 17:25:27 2007 Tanaka Akira <akr@fsij.org>
+Thu Dec 27 17:57:30 2007 Tanaka Akira <akr@fsij.org>
- * parse.y, transcode_data.h, transcode.c: change "illegal" to
- "invalid" in a context which doesn' t against a law.
+ * parse.y, transcode_data.h, transcode.c, lib/weakref.rb,
+ lib/irb/ruby-lex.rb, lib/irb/lc/error.rb, enc/trans/japanese.c:
+ change "illegal" to "invalid" in a context which doesn' t against
+ a law.
Thu Dec 27 16:37:06 2007 Tanaka Akira <akr@fsij.org>
diff --git a/enc/trans/japanese.c b/enc/trans/japanese.c
index 3ac71882af..8b08f81f5d 100644
--- a/enc/trans/japanese.c
+++ b/enc/trans/japanese.c
@@ -23743,7 +23743,7 @@ from_iso_2022_jp_transcoder_preprocessor(char **in_pos, char **out_pos,
/* SHIFT */
rb_raise(rb_eRuntimeError /*change exception*/, "shift is not supported");
} else if (c1 >= 0x80) {
- rb_raise(rb_eRuntimeError /*change exception*/, "illegal byte sequence");
+ rb_raise(rb_eRuntimeError /*change exception*/, "invalid byte sequence");
} else {
switch (cur_mode) {
case ISO_2022_GZ_ASCII:
diff --git a/lib/irb/lc/error.rb b/lib/irb/lc/error.rb
index 247596b7fe..d7c2ec9caf 100644
--- a/lib/irb/lc/error.rb
+++ b/lib/irb/lc/error.rb
@@ -18,7 +18,7 @@ module IRB
def_exception :UnrecognizedSwitch, "Unrecognized switch: %s"
def_exception :NotImplementedError, "Need to define `%s'"
def_exception :CantReturnToNormalMode, "Can't return to normal mode."
- def_exception :IllegalParameter, "Illegal parameter(%s)."
+ def_exception :IllegalParameter, "Invalid parameter(%s)."
def_exception :IrbAlreadyDead, "Irb is already dead."
def_exception :IrbSwitchedToCurrentThread, "Switched to current thread."
def_exception :NoSuchJob, "No such job(%s)."
diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb
index 561028fb6c..de9a62a5cb 100644
--- a/lib/irb/ruby-lex.rb
+++ b/lib/irb/ruby-lex.rb
@@ -967,7 +967,7 @@ class RubyLex
when /[0-7]/
match = /[0-7_]/
when /[89]/
- RubyLex.fail SyntaxError, "Illegal octal digit"
+ RubyLex.fail SyntaxError, "Invalid octal digit"
else
return Token(TkINTEGER)
end
diff --git a/lib/weakref.rb b/lib/weakref.rb
index 3b5bcd1b8e..ba39242445 100644
--- a/lib/weakref.rb
+++ b/lib/weakref.rb
@@ -52,12 +52,12 @@ class WeakRef < Delegator
def __getobj__
unless @@id_rev_map[self.object_id] == @__id
- Kernel::raise RefError, "Illegal Reference - probably recycled", Kernel::caller(2)
+ Kernel::raise RefError, "Invalid Reference - probably recycled", Kernel::caller(2)
end
begin
ObjectSpace._id2ref(@__id)
rescue RangeError
- Kernel::raise RefError, "Illegal Reference - probably recycled", Kernel::caller(2)
+ Kernel::raise RefError, "Invalid Reference - probably recycled", Kernel::caller(2)
end
end
def __setobj__(obj)