Hello,

Here is a patch against current CVS to render Ruby's exception messages
more consistently.

In particular, this fixes:

* Spelling mistakes.
* Grammatical mistakes.
* Missing whitespace.
* Capitalisation errors (Ruby favours exception messages that begin with
  a lower-case letter).
* Full vs. contracted English inconsistency (i.e. instances of "cannot"
  have been changed to "can't", as Ruby prefers contracted style.
* Full-stops at the end of messages have been removed, as Ruby prefers
  this.

Can someone please check this and apply it? It would be nice if it could
also go into the 1.8 tree.

Thanks,

Ian
-- 
Ian Macdonald               | My opinions may have changed, but not the
System Administrator        | fact that I am right. 
ian / caliban.org             | 
http://www.caliban.org      | 
                            | 
? raise.diff
Index: array.c
===================================================================
RCS file: /src/ruby/array.c,v
retrieving revision 1.170
diff -u -r1.170 array.c
--- array.c	18 Nov 2004 03:45:23 -0000	1.170
+++ array.c	26 Feb 2005 23:07:18 -0000
@@ -2254,7 +2254,7 @@
 	    }
 	}
 	else if (elen != RARRAY(tmp)->len) {
-	    rb_raise(rb_eIndexError, "element size differ (%d should be %d)",
+	    rb_raise(rb_eIndexError, "element size differs (%d should be %d)",
 		     RARRAY(tmp)->len, elen);
 	}
 	for (j=0; j<elen; j++) {
Index: bignum.c
===================================================================
RCS file: /src/ruby/bignum.c,v
retrieving revision 1.109
diff -u -r1.109 bignum.c
--- bignum.c	3 Sep 2004 09:00:51 -0000	1.109
+++ bignum.c	26 Feb 2005 23:07:19 -0000
@@ -1976,7 +1976,7 @@
 	return rb_assoc_new(rb_int2big(FIX2LONG(y)), x);
     }
     else {
-	rb_raise(rb_eTypeError, "Can't coerce %s to Bignum",
+	rb_raise(rb_eTypeError, "can't coerce %s to Bignum",
 		 rb_obj_classname(y));
     }
     /* not reached */
Index: error.c
===================================================================
RCS file: /src/ruby/error.c,v
retrieving revision 1.103
diff -u -r1.103 error.c
--- error.c	17 Nov 2004 02:27:37 -0000	1.103
+++ error.c	26 Feb 2005 23:07:20 -0000
@@ -1130,7 +1130,7 @@
 rb_notimplement()
 {
     rb_raise(rb_eNotImpError,
-	     "The %s() function is unimplemented on this machine",
+	     "the %s() function is unimplemented on this machine",
 	     rb_id2name(ruby_frame->last_func));
 }
 
Index: eval.c
===================================================================
RCS file: /src/ruby/eval.c,v
retrieving revision 1.755
diff -u -r1.755 eval.c
--- eval.c	22 Feb 2005 14:57:43 -0000	1.755
+++ eval.c	26 Feb 2005 23:07:27 -0000
@@ -5517,7 +5517,7 @@
 		       argv[11], argv[12], argv[13], argv[14]);
 	break;
       default:
-	rb_raise(rb_eArgError, "too many arguments(%d)", len);
+	rb_raise(rb_eArgError, "too many arguments (%d)", len);
 	break;
     }
     return Qnil;		/* not reached */
@@ -5576,7 +5576,7 @@
 	    int len = body->nd_argc;
 
 	    if (len < -2) {
-		rb_bug("bad argc(%d) specified for `%s(%s)'",
+		rb_bug("bad argc (%d) specified for `%s(%s)'",
 		       len, rb_class2name(klass), rb_id2name(id));
 	    }
 	    if (trace_func) {
@@ -6034,7 +6034,7 @@
 
     if (NIL_P(level)) lev = 1;
     else lev = NUM2INT(level);
-    if (lev < 0) rb_raise(rb_eArgError, "negative level(%d)", lev);
+    if (lev < 0) rb_raise(rb_eArgError, "negative level (%d)", lev);
 
     return backtrace(lev);
 }
@@ -6825,7 +6825,7 @@
 load_failed(fname)
     VALUE fname;
 {
-    rb_raise(rb_eLoadError, "No such file to load -- %s", RSTRING(fname)->ptr);
+    rb_raise(rb_eLoadError, "no such file to load -- %s", RSTRING(fname)->ptr);
 }
 
 VALUE
@@ -8929,7 +8929,7 @@
 
     Data_Get_Struct(method, struct METHOD, data);
     if (data->recv == Qundef) {
-	rb_raise(rb_eTypeError, "you cannot call unbound method; bind first");
+	rb_raise(rb_eTypeError, "can't call unbound method; bind first");
     }
     PUSH_ITER(rb_block_given_p()?ITER_PRE:ITER_NOT);
     PUSH_TAG(PROT_NONE);
@@ -9367,7 +9367,7 @@
 	VALUE rklass = method->rklass;
 	if (rklass != mod) {
 	    if (FL_TEST(rklass, FL_SINGLETON)) {
-		rb_raise(rb_eTypeError, "cannot bind singleton method to a different class");
+		rb_raise(rb_eTypeError, "can't bind singleton method to a different class");
 	    }
 	    if (RCLASS(mod)->super && RCLASS(rklass)->super &&
 		!RTEST(rb_class_inherited_p(mod, rklass))) {
Index: hash.c
===================================================================
RCS file: /src/ruby/hash.c,v
retrieving revision 1.146
diff -u -r1.146 hash.c
--- hash.c	28 Jan 2005 15:21:48 -0000	1.146
+++ hash.c	26 Feb 2005 23:07:29 -0000
@@ -1932,7 +1932,7 @@
     char *name, *value;
 
     if (rb_safe_level() >= 4) {
-	rb_raise(rb_eSecurityError, "cannot change environment variable");
+	rb_raise(rb_eSecurityError, "can't change environment variable");
     }
 
     if (NIL_P(val)) {
Index: io.c
===================================================================
RCS file: /src/ruby/io.c,v
retrieving revision 1.364
diff -u -r1.364 io.c
--- io.c	7 Feb 2005 14:40:22 -0000	1.364
+++ io.c	26 Feb 2005 23:07:32 -0000
@@ -174,7 +174,7 @@
 void
 rb_eof_error()
 {
-    rb_raise(rb_eEOFError, "End of file reached");
+    rb_raise(rb_eEOFError, "end of file reached");
 }
 
 VALUE
@@ -2415,7 +2415,7 @@
 	}
 	return MODE_BINMODE("r+", "rb+");
     }
-    rb_raise(rb_eArgError, "illegal access mode %o", flags);
+    rb_raise(rb_eArgError, "illegal access modenum %o", flags);
     return NULL;		/* not reached */
 }
 
@@ -3331,7 +3331,7 @@
     if (IS_PREP_STDIO(fptr)) {
 	if ((fptr->mode & FMODE_READWRITE) != (orig->mode & FMODE_READWRITE)) {
 	    rb_raise(rb_eArgError,
-		     "%s cannot change access mode from \"%s\" to \"%s\"",
+		     "%s can't change access mode from \"%s\" to \"%s\"",
 		     PREP_STDIO_NAME(fptr), rb_io_flags_mode(fptr->mode),
 		     rb_io_flags_mode(orig->mode));
 	}
@@ -3445,7 +3445,7 @@
 	if (IS_PREP_STDIO(fptr) &&
 	    (fptr->mode & FMODE_READWRITE) != (flags & FMODE_READWRITE)) {
 	    rb_raise(rb_eArgError,
-		     "%s cannot change access mode from \"%s\" to \"%s\"",
+		     "%s can't change access mode from \"%s\" to \"%s\"",
 		     PREP_STDIO_NAME(fptr), rb_io_flags_mode(fptr->mode),
 		     rb_io_flags_mode(flags));
 	}
Index: marshal.c
===================================================================
RCS file: /src/ruby/marshal.c,v
retrieving revision 1.119
diff -u -r1.119 marshal.c
--- marshal.c	18 Oct 2004 14:37:14 -0000	1.119
+++ marshal.c	26 Feb 2005 23:07:33 -0000
@@ -111,7 +111,7 @@
 		 n);
     }
     if (rb_path2class(n) != rb_class_real(klass)) {
-	rb_raise(rb_eTypeError, "%s cannot be referred", n);
+	rb_raise(rb_eTypeError, "%s can't be referred", n);
     }
     return path;
 }
@@ -615,7 +615,7 @@
 	    }
 	    else if (FL_TEST(obj, FL_USER2)) {
 		/* FL_USER2 means HASH_PROC_DEFAULT (see hash.c) */
-		rb_raise(rb_eTypeError, "cannot dump hash with default proc");
+		rb_raise(rb_eTypeError, "can't dump hash with default proc");
 	    }
 	    else {
 		w_byte(TYPE_HASH_DEF, arg);
Index: numeric.c
===================================================================
RCS file: /src/ruby/numeric.c,v
retrieving revision 1.117
diff -u -r1.117 numeric.c
--- numeric.c	11 Jan 2005 00:46:35 -0000	1.117
+++ numeric.c	26 Feb 2005 23:07:34 -0000
@@ -1438,7 +1438,7 @@
 	    rb_raise(rb_eArgError, "wrong number of arguments");
 	}
 	if (rb_equal(step, INT2FIX(0))) {
-	    rb_raise(rb_eArgError, "step cannot be 0");
+	    rb_raise(rb_eArgError, "step can't be 0");
 	}
     }
 
Index: object.c
===================================================================
RCS file: /src/ruby/object.c,v
retrieving revision 1.165
diff -u -r1.165 object.c
--- object.c	11 Jan 2005 15:36:39 -0000	1.165
+++ object.c	26 Feb 2005 23:07:36 -0000
@@ -2064,7 +2064,7 @@
     m = rb_intern(method);
     if (!rb_respond_to(val, m)) {
 	if (raise) {
-	    rb_raise(rb_eTypeError, "cannot convert %s into %s",
+	    rb_raise(rb_eTypeError, "can't convert %s into %s",
 		     NIL_P(val) ? "nil" :
 		     val == Qtrue ? "true" :
 		     val == Qfalse ? "false" :
@@ -2090,7 +2090,7 @@
     v = convert_type(val, tname, method, Qtrue);
     if (TYPE(v) != type) {
 	char *cname = rb_obj_classname(val);
-	rb_raise(rb_eTypeError, "cannot convert %s to %s (%s#%s gives %s)",
+	rb_raise(rb_eTypeError, "can't convert %s to %s (%s#%s gives %s)",
 		 cname, tname, cname, method, rb_obj_classname(v));
     }
     return v;
@@ -2110,7 +2110,7 @@
     if (NIL_P(v)) return Qnil;
     if (TYPE(v) != type) {
 	char *cname = rb_obj_classname(val);
-	rb_raise(rb_eTypeError, "cannot convert %s to %s (%s#%s gives %s)",
+	rb_raise(rb_eTypeError, "can't convert %s to %s (%s#%s gives %s)",
 		 cname, tname, cname, method, rb_obj_classname(v));
     }
     return v;
@@ -2125,7 +2125,7 @@
     VALUE v = convert_type(val, "Integer", method, Qtrue);
     if (!rb_obj_is_kind_of(v, rb_cInteger)) {
 	char *cname = rb_obj_classname(val);
-	rb_raise(rb_eTypeError, "cannot convert %s to Integer (%s#%s gives %s)",
+	rb_raise(rb_eTypeError, "can't convert %s to Integer (%s#%s gives %s)",
 		 cname, cname, method, rb_obj_classname(v));
     }
     return v;
@@ -2306,7 +2306,7 @@
 	return rb_float_new(rb_str_to_dbl(val, Qtrue));
 
       case T_NIL:
-	rb_raise(rb_eTypeError, "cannot convert nil into Float");
+	rb_raise(rb_eTypeError, "can't convert nil into Float");
 	break;
 
       default:
Index: pack.c
===================================================================
RCS file: /src/ruby/pack.c,v
retrieving revision 1.75
diff -u -r1.75 pack.c
--- pack.c	14 Nov 2004 15:41:39 -0000	1.75
+++ pack.c	26 Feb 2005 23:07:37 -0000
@@ -343,7 +343,7 @@
     if (TYPE(x) == T_BIGNUM) {
 	return rb_big2ulong_pack(x);
     }
-    rb_raise(rb_eTypeError, "cannot convert %s to `integer'", rb_obj_classname(x));
+    rb_raise(rb_eTypeError, "can't convert %s to `integer'", rb_obj_classname(x));
     return 0;			/* not reached */
 }
 
@@ -962,7 +962,7 @@
 		{
 		    long l = NUM2LONG(from);
 		    if (l < 0) {
-			rb_raise(rb_eArgError, "cannot compress negative numbers");
+			rb_raise(rb_eArgError, "can't compress negative numbers");
 		    }
 		    ul = l;
 		}
Index: process.c
===================================================================
RCS file: /src/ruby/process.c,v
retrieving revision 1.128
diff -u -r1.128 process.c
--- process.c	27 Dec 2004 05:39:27 -0000	1.128
+++ process.c	26 Feb 2005 23:07:39 -0000
@@ -2046,7 +2046,7 @@
 {
     rb_secure(2);
     if (under_uid_switch) {
-	rb_raise(rb_eRuntimeError, "can't handle UID during evaluating the block given to the Process::UID.switch method");
+	rb_raise(rb_eRuntimeError, "can't handle UID while evaluating block given to Process::UID.switch method");
     }
 }
 
@@ -2056,7 +2056,7 @@
 {
     rb_secure(2);
     if (under_gid_switch) {
-	rb_raise(rb_eRuntimeError, "can't handle GID during evaluating the block given to the Process::UID.switch method");
+	rb_raise(rb_eRuntimeError, "can't handle GID while evaluating block given to Process::UID.switch method");
     }
 }
 
Index: range.c
===================================================================
RCS file: /src/ruby/range.c,v
retrieving revision 1.68
diff -u -r1.68 range.c
--- range.c	29 Oct 2004 08:19:50 -0000	1.68
+++ range.c	26 Feb 2005 23:07:40 -0000
@@ -352,7 +352,7 @@
 
 	    if (unit == 0) rb_raise(rb_eArgError, "step can't be 0");
 	    if (!rb_respond_to(b, id_succ)) {
-		rb_raise(rb_eTypeError, "cannot iterate from %s",
+		rb_raise(rb_eTypeError, "can't iterate from %s",
 			 rb_obj_classname(b));
 	    }
 	
@@ -400,7 +400,7 @@
     end = rb_ivar_get(range, id_end);
 
     if (!rb_respond_to(beg, id_succ)) {
-	rb_raise(rb_eTypeError, "cannot iterate from %s",
+	rb_raise(rb_eTypeError, "can't iterate from %s",
 		 rb_obj_classname(beg));
     }
     if (FIXNUM_P(beg) && FIXNUM_P(end)) { /* fixnums are special */
Index: ruby.c
===================================================================
RCS file: /src/ruby/ruby.c,v
retrieving revision 1.96
diff -u -r1.96 ruby.c
--- ruby.c	25 Jan 2005 08:10:33 -0000	1.96
+++ ruby.c	26 Feb 2005 23:07:40 -0000
@@ -731,7 +731,7 @@
 		}
 		if (!*s) break;
 		if (!strchr("IdvwrK", *s))
-		    rb_raise(rb_eRuntimeError, "Illegal switch in RUBYOPT: -%c", *s);
+		    rb_raise(rb_eRuntimeError, "illegal switch in RUBYOPT: -%c", *s);
 		s = moreswitches(s);
 	    }
 	}
@@ -858,7 +858,7 @@
 		    }
 		}
 	    }
-	    rb_raise(rb_eLoadError, "No Ruby script found in input");
+	    rb_raise(rb_eLoadError, "no Ruby script found in input");
 	}
 
 	c = rb_io_getc(f);
@@ -1047,11 +1047,11 @@
     const char *s;
 {
     if (euid != uid)
-        rb_raise(rb_eSecurityError, "No %s allowed while running setuid", s);
+        rb_raise(rb_eSecurityError, "no %s allowed while running setuid", s);
     if (egid != gid)
-        rb_raise(rb_eSecurityError, "No %s allowed while running setgid", s);
+        rb_raise(rb_eSecurityError, "no %s allowed while running setgid", s);
     if (rb_safe_level() > 0)
-        rb_raise(rb_eSecurityError, "No %s allowed in tainted mode", s);
+        rb_raise(rb_eSecurityError, "no %s allowed in tainted mode", s);
 }
 
 static void
Index: signal.c
===================================================================
RCS file: /src/ruby/signal.c,v
retrieving revision 1.57
diff -u -r1.57 signal.c
--- signal.c	22 Feb 2005 14:50:33 -0000	1.57
+++ signal.c	26 Feb 2005 23:07:41 -0000
@@ -651,7 +651,7 @@
     }
 #if defined(HAVE_SETITIMER)
     if (sig == SIGVTALRM) {
-	rb_raise(rb_eArgError, "SIGVTALRM reserved for Thread; cannot set handler");
+	rb_raise(rb_eArgError, "SIGVTALRM reserved for Thread; can't set handler");
     }
 #endif
     if (func == SIG_DFL) {
Index: sprintf.c
===================================================================
RCS file: /src/ruby/sprintf.c,v
retrieving revision 1.44
diff -u -r1.44 sprintf.c
--- sprintf.c	8 Dec 2004 05:32:25 -0000	1.44
+++ sprintf.c	26 Feb 2005 23:07:41 -0000
@@ -107,7 +107,7 @@
 	       (posarg = -1, GETNTHARG(n))))
 
 #define GETNTHARG(nth) \
-    ((nth >= argc) ? (rb_raise(rb_eArgError, "too few arguments."), 0) : argv[nth])
+    ((nth >= argc) ? (rb_raise(rb_eArgError, "too few arguments"), 0) : argv[nth])
 
 #define GETASTER(val) do { \
     t = p++; \
Index: string.c
===================================================================
RCS file: /src/ruby/string.c,v
retrieving revision 1.229
diff -u -r1.229 string.c
--- string.c	28 Dec 2004 13:31:55 -0000	1.229
+++ string.c	26 Feb 2005 23:07:44 -0000
@@ -1323,7 +1323,7 @@
 {
     VALUE re;
     if (argc < 1)
-	rb_raise(rb_eArgError, "wrong number of arguments(%d for 1)", argc);
+	rb_raise(rb_eArgError, "wrong number of arguments (%d for 1)", argc);
     re = argv[0];
     argv[0] = str;
     return rb_funcall2(get_pat(re, 0), rb_intern("match"), argc, argv);
@@ -4378,7 +4378,7 @@
 
     StringValue(salt);
     if (RSTRING(salt)->len < 2)
-	rb_raise(rb_eArgError, "salt too short(need >=2 bytes)");
+	rb_raise(rb_eArgError, "salt too short (need >=2 bytes)");
 
     if (RSTRING(str)->ptr) s = RSTRING(str)->ptr;
     else s = "";
Index: ext/Win32API/Win32API.c
===================================================================
RCS file: /src/ruby/ext/Win32API/Win32API.c,v
retrieving revision 1.19
diff -u -r1.19 Win32API.c
--- ext/Win32API/Win32API.c	13 Aug 2003 04:52:35 -0000	1.19
+++ ext/Win32API/Win32API.c	26 Feb 2005 23:07:44 -0000
@@ -160,7 +160,7 @@
 
 
     if (items != nimport)
-	rb_raise(rb_eRuntimeError, "Wrong number of parameters: expected %d, got %d.\n",
+	rb_raise(rb_eRuntimeError, "wrong number of parameters: expected %d, got %d",
 	    nimport, items);
 
     for (i = 0; i < nimport; i++) {
Index: ext/bigdecimal/bigdecimal.c
===================================================================
RCS file: /src/ruby/ext/bigdecimal/bigdecimal.c,v
retrieving revision 1.43
diff -u -r1.43 bigdecimal.c
--- ext/bigdecimal/bigdecimal.c	19 Oct 2004 10:24:40 -0000	1.43
+++ ext/bigdecimal/bigdecimal.c	26 Feb 2005 23:07:47 -0000
@@ -202,7 +202,7 @@
     /* First get max prec */
     while((*pch)!=(unsigned char)'\0' && (ch=*pch++)!=(unsigned char)':') {
         if(!ISDIGIT(ch)) {
-            rb_raise(rb_eTypeError, "Load failed: invalid character in the marshaled string");
+            rb_raise(rb_eTypeError, "load failed: invalid character in the marshaled string");
         }
         m = m*10 + (unsigned long)(ch-'0');
     }
@@ -230,7 +230,7 @@
         fo = VpGetException();
         if(val==Qnil) return INT2FIX(fo);
         if(val!=Qfalse && val!=Qtrue) {
-            rb_raise(rb_eTypeError, "The second argument must be true or false.");
+            rb_raise(rb_eTypeError, "second argument must be true or false");
             return Qnil; /* Not reached */
         }
         if(f&VP_EXCEPTION_INFINITY) {
@@ -250,13 +250,13 @@
         if(val==Qnil) return INT2FIX(fo);
         Check_Type(val, T_FIXNUM);
         if(!VpIsRoundMode(FIX2INT(val))) {
-            rb_raise(rb_eTypeError, "Invalid rounding mode.");
+            rb_raise(rb_eTypeError, "invalid rounding mode");
             return Qnil;
         }
         fo = VpSetRoundMode((unsigned long)FIX2INT(val));
         return INT2FIX(fo);
     }
-    rb_raise(rb_eTypeError, "The first argument for BigDecimal#mode is invalid.");
+    rb_raise(rb_eTypeError, "first argument for BigDecimal#mode invalid");
     return Qnil;
 }
 
@@ -412,7 +412,7 @@
     errno = 0;
     d2 = pow(10.0,(double)e);
     if((errno == ERANGE && e>0) || (d2>1.0 && (fabs(d) > (DBL_MAX / d2)))) {
-       VpException(VP_EXCEPTION_OVERFLOW,"BigDecimal to Float conversion.",0);
+       VpException(VP_EXCEPTION_OVERFLOW,"BigDecimal to Float conversion",0);
        if(d>0.0) return rb_float_new(DBL_MAX);
        else      return rb_float_new(-DBL_MAX);
     }
@@ -940,7 +940,7 @@
         Check_Type(vRound, T_FIXNUM);
         sw   = FIX2INT(vRound);
         if(!VpIsRoundMode(sw)) {
-            rb_raise(rb_eTypeError, "Invalid rounding mode.");
+            rb_raise(rb_eTypeError, "invalid rounding mode");
             return Qnil;
         }
         break;
@@ -3304,7 +3304,7 @@
             es = e*((S_INT)BASE_FIG);
             e = e * 10 + exp_chr[i] - '0';
             if(es>e*((S_INT)BASE_FIG)) {
-                return VpException(VP_EXCEPTION_INFINITY,"Exponent overflow",0);
+                return VpException(VP_EXCEPTION_INFINITY,"exponent overflow",0);
             }
             ++i;
         }
Index: ext/curses/curses.c
===================================================================
RCS file: /src/ruby/ext/curses/curses.c,v
retrieving revision 1.26
diff -u -r1.26 curses.c
--- ext/curses/curses.c	12 Dec 2004 17:47:53 -0000	1.26
+++ ext/curses/curses.c	26 Feb 2005 23:07:48 -0000
@@ -124,7 +124,7 @@
     if (rb_stdscr) return rb_stdscr;
     initscr();
     if (stdscr == 0) {
-	rb_raise(rb_eRuntimeError, "cannot initialize curses");
+	rb_raise(rb_eRuntimeError, "can't initialize curses");
     }
     clear();
     rb_stdscr = prep_window(cWindow, stdscr);
Index: ext/dl/cfunc.c
===================================================================
RCS file: /src/ruby/ext/dl/cfunc.c,v
retrieving revision 1.3
diff -u -r1.3 cfunc.c
--- ext/dl/cfunc.c	8 Feb 2005 09:18:16 -0000	1.3
+++ ext/dl/cfunc.c	26 Feb 2005 23:07:48 -0000
@@ -237,7 +237,7 @@
   CASE(6); break; CASE(7); break; CASE(8); break; CASE(9); break; CASE(10);break; \
   CASE(11);break; CASE(12);break; CASE(13);break; CASE(14);break; CASE(15);break; \
   CASE(16);break; CASE(17);break; CASE(18);break; CASE(19);break; CASE(20);break; \
-  default: rb_raise(rb_eArgError, "too many arguments."); \
+  default: rb_raise(rb_eArgError, "too many arguments"); \
 }
 
 
@@ -257,7 +257,7 @@
     Data_Get_Struct(self, struct cfunc_data, cfunc);
 
     if( cfunc->ptr == 0 ){
-	rb_raise(rb_eDLError, "can't call null-function.");
+	rb_raise(rb_eDLError, "can't call null-function");
 	return Qnil;
     }
     
Index: ext/dl/cptr.c
===================================================================
RCS file: /src/ruby/ext/dl/cptr.c,v
retrieving revision 1.3
diff -u -r1.3 cptr.c
--- ext/dl/cptr.c	6 Feb 2005 18:07:10 -0000	1.3
+++ ext/dl/cptr.c	26 Feb 2005 23:07:48 -0000
@@ -430,7 +430,7 @@
 	    return vptr;
 	}
 	else{
-	    rb_raise(rb_eDLError, "to_ptr should return a CPtr object.");
+	    rb_raise(rb_eDLError, "to_ptr should return a CPtr object");
 	}
     }
     else{
Index: ext/dl/handle.c
===================================================================
RCS file: /src/ruby/ext/dl/handle.c,v
retrieving revision 1.17
diff -u -r1.17 handle.c
--- ext/dl/handle.c	8 Feb 2005 09:18:16 -0000	1.17
+++ ext/dl/handle.c	26 Feb 2005 23:07:49 -0000
@@ -155,7 +155,7 @@
 
     Data_Get_Struct(self, struct dl_handle, dlhandle);
     if( ! dlhandle->open ){
-	rb_raise(rb_eDLError, "Closed handle.");
+	rb_raise(rb_eDLError, "closed handle");
     }
     handle = dlhandle->ptr;
 
@@ -187,7 +187,7 @@
 		}
 		CHECK_DLERROR;
 		if( !func ){
-		    rb_raise(rb_eDLError, "Unknown symbol \"%s\".", name);
+		    rb_raise(rb_eDLError, "unknown symbol \"%s\"", name);
 		}
 	    }
 	}
@@ -205,7 +205,7 @@
 	}
 	CHECK_DLERROR;
         if( !func ){
-	    rb_raise(rb_eDLError, "Unknown symbol \"%s\".", name);
+	    rb_raise(rb_eDLError, "unknown symbol \"%s\"", name);
 	}
 #endif
     }
Index: ext/openssl/ossl_cipher.c
===================================================================
RCS file: /src/ruby/ext/openssl/ossl_cipher.c,v
retrieving revision 1.8
diff -u -r1.8 ossl_cipher.c
--- ext/openssl/ossl_cipher.c	15 Dec 2004 06:35:53 -0000	1.8
+++ ext/openssl/ossl_cipher.c	26 Feb 2005 23:07:49 -0000
@@ -94,7 +94,7 @@
     name = StringValuePtr(str);
     GetCipher(self, ctx);
     if (!(cipher = EVP_get_cipherbyname(name))) {
-	ossl_raise(rb_eRuntimeError, "Unsupported cipher algorithm (%s).", name);
+	ossl_raise(rb_eRuntimeError, "unsupported cipher algorithm (%s)", name);
     }
     if (EVP_CipherInit_ex(ctx, cipher, NULL, NULL, NULL, -1) != 1)
 	ossl_raise(eCipherError, NULL);
@@ -198,7 +198,7 @@
     if(!NIL_P(vsalt)){
 	StringValue(vsalt);
 	if(RSTRING(vsalt)->len != PKCS5_SALT_LEN)
-	    rb_raise(eCipherError, "salt must be an 8-octet string.");
+	    rb_raise(eCipherError, "salt must be an 8-octet string");
 	salt = RSTRING(vsalt)->ptr;
     }
     iter = NIL_P(viter) ? 2048 : NUM2INT(viter);
Index: ext/pty/pty.c
===================================================================
RCS file: /src/ruby/ext/pty/pty.c,v
retrieving revision 1.21
diff -u -r1.21 pty.c
--- ext/pty/pty.c	8 Dec 2004 13:26:27 -0000	1.21
+++ ext/pty/pty.c	26 Feb 2005 23:07:49 -0000
@@ -375,7 +375,7 @@
 	}
 	close(i);
     }
-    rb_raise(rb_eRuntimeError, "Cannot get Master/Slave device");
+    rb_raise(rb_eRuntimeError, "can't get Master/Slave device");
 #else
     char **p;
     char MasterName[DEVICELEN];
@@ -394,7 +394,7 @@
 	    close(i);
 	}
     }
-    rb_raise(rb_eRuntimeError, "Cannot get %s", SlaveName);
+    rb_raise(rb_eRuntimeError, "can't get %s", SlaveName);
 #endif
 }
 #endif /* HAVE__GETPTY */
Index: ext/readline/readline.c
===================================================================
RCS file: /src/ruby/ext/readline/readline.c,v
retrieving revision 1.20
diff -u -r1.20 readline.c
--- ext/readline/readline.c	16 Jan 2005 22:09:13 -0000	1.20
+++ ext/readline/readline.c	26 Feb 2005 23:07:50 -0000
@@ -488,7 +488,7 @@
         i += state->length;
     }
     if (i < 0 || i > state->length - 1) {
-	rb_raise(rb_eIndexError, "Invalid index");
+	rb_raise(rb_eIndexError, "invalid index");
     }
     return rb_tainted_str_new2(state->entries[i]->line);
 }
@@ -510,7 +510,7 @@
         i += state->length;
     }
     if (i < 0 || i > state->length - 1) {
-	rb_raise(rb_eIndexError, "Invalid index");
+	rb_raise(rb_eIndexError, "invalid index");
     }
     SafeStringValue(str);
     replace_history_entry(i, RSTRING(str)->ptr, NULL);
@@ -629,7 +629,7 @@
     if (i < 0)
         i += state->length;
     if (i < 0 || i > state->length - 1) {
-	rb_raise(rb_eIndexError, "Invalid index");
+	rb_raise(rb_eIndexError, "invalid index");
     }
     return rb_remove_history(i);
 }
Index: ext/socket/socket.c
===================================================================
RCS file: /src/ruby/ext/socket/socket.c,v
retrieving revision 1.140
diff -u -r1.140 socket.c
--- ext/socket/socket.c	9 Feb 2005 07:34:56 -0000	1.140
+++ ext/socket/socket.c	26 Feb 2005 23:07:51 -0000
@@ -1611,7 +1611,7 @@
         fd = FIX2INT(val);
     }
     else {
-	rb_raise(rb_eTypeError, "IO nor file descriptor");
+	rb_raise(rb_eTypeError, "neither IO nor file descriptor");
     }
 
     GetOpenFile(sock, fptr);
@@ -1728,7 +1728,7 @@
         msg.msg_accrightslen != sizeof(fd)
 #endif
 	) {
-	rb_raise(rb_eSocket, "File descriptor was not passed");
+	rb_raise(rb_eSocket, "file descriptor was not passed");
     }
 
 #if FD_PASSING_BY_MSG_CONTROL
@@ -1880,7 +1880,7 @@
 	    *dv = PF_IPX;
 #endif
 	else
-	    rb_raise(rb_eSocket, "Unknown socket domain %s", ptr);
+	    rb_raise(rb_eSocket, "unknown socket domain %s", ptr);
     }
     else {
 	*dv = NUM2INT(domain);
@@ -1911,7 +1911,7 @@
 	    *tv = SOCK_PACKET;
 #endif
 	else
-	    rb_raise(rb_eSocket, "Unknown socket type %s", ptr);
+	    rb_raise(rb_eSocket, "unknown socket type %s", ptr);
     }
     else {
 	*tv = NUM2INT(type);
Index: ext/strscan/strscan.c
===================================================================
RCS file: /src/ruby/ext/strscan/strscan.c,v
retrieving revision 1.17
diff -u -r1.17 strscan.c
--- ext/strscan/strscan.c	26 Feb 2005 08:05:06 -0000	1.17
+++ ext/strscan/strscan.c	26 Feb 2005 23:07:52 -0000
@@ -797,7 +797,7 @@
  *   s.unscan
  *   s.scan(/../)         # => "te"
  *   s.scan(/\d/)         # => nil
- *   s.unscan             # ScanError: cannot unscan: prev match had failed
+ *   s.unscan             # ScanError: can't unscan: prev match had failed
  */
 static VALUE
 strscan_peep(self, vlen)
@@ -815,7 +815,7 @@
 
     GET_SCANNER(self, p);
     if (! MATCHED_P(p))
-        rb_raise(ScanError, "cannot unscan: prev match had failed");
+        rb_raise(ScanError, "can't unscan: prev match had failed");
 
     p->curr = p->prev;
     CLEAR_MATCH_STATUS(p);
Index: ext/tk/tcltklib.c
===================================================================
RCS file: /src/ruby/ext/tk/tcltklib.c,v
retrieving revision 1.2
diff -u -r1.2 tcltklib.c
--- ext/tk/tcltklib.c	31 Jan 2005 04:14:50 -0000	1.2
+++ ext/tk/tcltklib.c	26 Feb 2005 23:07:57 -0000
@@ -3339,7 +3339,7 @@
     Tcl_Preserve(ip);
 
     if (Tcl_Eval(ip, "info slaves") == TCL_ERROR) {
-        DUMP2("ip(%lx) cannot get a list of slave IPs", ip);
+        DUMP2("ip(%lx) can't get a list of slave IPs", ip);
         return;
     }
 
@@ -3494,7 +3494,7 @@
 
     /* security check */
     if (ruby_safe_level >= 4) {
-        rb_raise(rb_eSecurityError, "Cannot create a TclTkIp object at level %d", ruby_safe_level);
+        rb_raise(rb_eSecurityError, "can't create a TclTkIp object at level %d", ruby_safe_level);
     }
 
     /* create object */
@@ -3748,7 +3748,7 @@
     if (Tcl_InterpDeleted(master->ip)) {
         DUMP1("master-ip is deleted");
         rb_thread_critical = thr_crit_bup;
-        rb_raise(rb_eRuntimeError, "deleted master cannot create a new slave interpreter");
+        rb_raise(rb_eRuntimeError, "deleted master can't create a new slave interpreter");
     }
 
     /* create slave-ip */
@@ -6078,7 +6078,7 @@
         if (result == TCL_ERROR) {
             Tcl_DecrRefCount(listobj);
             if (interp == (Tcl_Interp*)NULL) {
-                rb_raise(rb_eRuntimeError, "cannot get elements from list");
+                rb_raise(rb_eRuntimeError, "can't get elements from list");
             } else {
 #if TCL_MAJOR_VERSION >= 8
                 rb_raise(rb_eRuntimeError, "%s", Tcl_GetStringResult(interp));
@@ -6150,7 +6150,7 @@
         if (Tcl_SplitList(interp, RSTRING(list_str)->ptr, 
                           &argc, &argv) == TCL_ERROR) {
             if (interp == (Tcl_Interp*)NULL) {
-                rb_raise(rb_eRuntimeError, "cannot get elements from list");
+                rb_raise(rb_eRuntimeError, "can't get elements from list");
             } else {
                 rb_raise(rb_eRuntimeError, "%s", interp->result);
             }
Index: ext/win32ole/win32ole.c
===================================================================
RCS file: /src/ruby/ext/win32ole/win32ole.c,v
retrieving revision 1.33
diff -u -r1.33 win32ole.c
--- ext/win32ole/win32ole.c	6 Nov 2004 11:42:34 -0000	1.33
+++ ext/win32ole/win32ole.c	26 Feb 2005 23:08:02 -0000
@@ -73,7 +73,7 @@
 #define OLEData_Get_Struct(obj, pole) {\
     Data_Get_Struct(obj, struct oledata, pole);\
     if(!pole->pDispatch) {\
-        rb_raise(rb_eRuntimeError, "Failed to get Dispatch Interface");\
+        rb_raise(rb_eRuntimeError, "failed to get Dispatch Interface");\
     }\
 }
 
@@ -606,7 +606,7 @@
     if(gOLEInitialized == Qfalse) {
         hr = OleInitialize(NULL);
         if(FAILED(hr)) {
-            ole_raise(hr, rb_eRuntimeError, "Fail: OLE initialize");
+            ole_raise(hr, rb_eRuntimeError, "fail: OLE initialize");
         }
         gOLEInitialized = Qtrue;
         /*
@@ -1378,12 +1378,12 @@
     if (!gole32)
         gole32 = LoadLibrary("OLE32");
     if (!gole32)
-        rb_raise(rb_eRuntimeError, "Failed to load OLE32");
+        rb_raise(rb_eRuntimeError, "failed to load OLE32");
     if (!gCoCreateInstanceEx)
         gCoCreateInstanceEx = (FNCOCREATEINSTANCEEX*)
             GetProcAddress(gole32, "CoCreateInstanceEx");
     if (!gCoCreateInstanceEx)
-        rb_raise(rb_eRuntimeError, "CoCreateInstanceEx is not supported in this environment.");
+        rb_raise(rb_eRuntimeError, "CoCreateInstanceEx is not supported in this environment");
     rb_scan_args(argc, argv, "2*", &ole, &host, &others);
 
     pbuf  = ole_mb2wc(StringValuePtr(ole), -1);
@@ -1395,7 +1395,7 @@
     SysFreeString(pbuf);
     if (FAILED(hr))
         ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, 
-                  "Unknown OLE server: `%s'",
+                  "unknown OLE server: `%s'",
                   StringValuePtr(ole));
     memset(&serverinfo, 0, sizeof(COSERVERINFO));    
     serverinfo.pwszName = ole_mb2wc(StringValuePtr(host), -1);
@@ -1405,7 +1405,7 @@
     SysFreeString(serverinfo.pwszName);
     if (FAILED(hr))
         ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, 
-                  "Failed to create DCOM server `%s' in `%s'",
+                  "failed to create DCOM server `%s' in `%s'",
                   StringValuePtr(ole),
                   StringValuePtr(host));
 
@@ -1432,7 +1432,7 @@
     hr = CreateBindCtx(0, &pBindCtx);
     if(FAILED(hr)) {
         ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, 
-                  "Failed to create bind context");
+                  "failed to create bind context");
     }
 
     pbuf  = ole_mb2wc(StringValuePtr(moniker), -1);
@@ -1441,7 +1441,7 @@
     if(FAILED(hr)) {
         OLE_RELEASE(pBindCtx);
         ole_raise(hr, eWIN32OLE_RUNTIME_ERROR,
-                  "Failed to parse display name of moniker `%s'",
+                  "failed to parse display name of moniker `%s'",
                   StringValuePtr(moniker));
     }
     hr = pMoniker->lpVtbl->BindToObject(pMoniker, pBindCtx, NULL, 
@@ -1452,7 +1452,7 @@
 
     if(FAILED(hr)) {
         ole_raise(hr, eWIN32OLE_RUNTIME_ERROR,
-                  "Failed to bind moniker `%s'",
+                  "failed to bind moniker `%s'",
                   StringValuePtr(moniker));
     }
     return create_win32ole_object(self, pDispatch, argc, argv);
@@ -1512,7 +1512,7 @@
     if(FAILED(hr)) {
         OLE_RELEASE(pUnknown);
         ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, 
-                  "Failed to create WIN32OLE server `%s'", 
+                  "failed to create WIN32OLE server `%s'", 
                   StringValuePtr(svr_name));
     }
 
@@ -1572,19 +1572,19 @@
     if (TYPE(klass) != T_CLASS &&
         TYPE(klass) != T_MODULE &&
         TYPE(klass) != T_NIL) {
-        rb_raise(rb_eTypeError, "2nd paramator must be Class or Module.");
+        rb_raise(rb_eTypeError, "2nd parameter must be Class or Module");
     }
     if (rb_obj_is_kind_of(ole, cWIN32OLE)) {
         OLEData_Get_Struct(ole, pole);
         hr = pole->pDispatch->lpVtbl->GetTypeInfo(pole->pDispatch,
                                                   0, lcid, &pTypeInfo);
         if(FAILED(hr)) {
-            ole_raise(hr, rb_eRuntimeError, "Failed to GetTypeInfo");
+            ole_raise(hr, rb_eRuntimeError, "failed to GetTypeInfo");
         }
         hr = pTypeInfo->lpVtbl->GetContainingTypeLib(pTypeInfo, &pTypeLib, &index);
         if(FAILED(hr)) {
             OLE_RELEASE(pTypeInfo);
-            ole_raise(hr, rb_eRuntimeError, "Failed to GetContainingTypeLib");
+            ole_raise(hr, rb_eRuntimeError, "failed to GetContainingTypeLib");
         }
         OLE_RELEASE(pTypeInfo);
         if(TYPE(klass) != T_NIL) {
@@ -1604,7 +1604,7 @@
         hr = LoadTypeLibEx(pBuf, REGKIND_NONE, &pTypeLib);
         SysFreeString(pBuf);
         if (FAILED(hr))
-          ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, "Failed to LoadTypeLibEx");
+          ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, "failed to LoadTypeLibEx");
         if(TYPE(klass) != T_NIL) {
             ole_const_load(pTypeLib, klass, self);
         }
@@ -1614,7 +1614,7 @@
         OLE_RELEASE(pTypeLib);
     }
     else {
-        rb_raise(rb_eTypeError, "1st paramator must be WIN32OLE instance");
+        rb_raise(rb_eTypeError, "1st parameter must be WIN32OLE instance");
     }
     return Qnil;
 }
@@ -1767,11 +1767,11 @@
         helpfile = target;
     }
     if (TYPE(helpfile) != T_STRING) {
-        rb_raise(rb_eTypeError, "1st parameter must be (String|WIN32OLE_TYPE|WIN32OLE_METHOD).");
+        rb_raise(rb_eTypeError, "1st parameter must be (String|WIN32OLE_TYPE|WIN32OLE_METHOD)");
     }
     hwnd = ole_show_help(helpfile, helpcontext);
     if(hwnd == 0) {
-        rb_raise(rb_eRuntimeError, "Failed to open help file `%s'",
+        rb_raise(rb_eRuntimeError, "failed to open help file `%s'",
                  StringValuePtr(helpfile));
     }
     return Qnil;
@@ -1884,7 +1884,7 @@
     SysFreeString(pBuf);
     if(FAILED(hr)) {
         ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, 
-                  "Unknown OLE server: `%s'",
+                  "unknown OLE server: `%s'",
                   StringValuePtr(svr_name));
     }
 
@@ -1893,7 +1893,7 @@
                           &IID_IDispatch, (void**)&pDispatch);
     if(FAILED(hr)) {
         ole_raise(hr, eWIN32OLE_RUNTIME_ERROR,
-                  "Failed to create WIN32OLE object from `%s'",
+                  "failed to create WIN32OLE object from `%s'",
                   StringValuePtr(svr_name));
     }
     
@@ -1994,7 +1994,7 @@
     rb_scan_args(argc, argv, "1*", &cmd, &paramS);
     OLEData_Get_Struct(self, pole);
     if(!pole->pDispatch) {
-        rb_raise(rb_eRuntimeError, "Failed to get dispatch interface");
+        rb_raise(rb_eRuntimeError, "failed to get dispatch interface");
     }
     wcmdname = ole_mb2wc(StringValuePtr(cmd), -1);
     hr = pole->pDispatch->lpVtbl->GetIDsOfNames( pole->pDispatch, &IID_NULL,
@@ -2002,7 +2002,7 @@
     SysFreeString(wcmdname);
     if(FAILED(hr)) {
         ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, 
-                  "Unknown property or method: `%s'",
+                  "unknown property or method: `%s'",
                   StringValuePtr(cmd));
     }
 
@@ -2039,7 +2039,7 @@
                 VariantClear(&op.dp.rgvarg[i]);
             }
             ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, 
-                      "Failed to get named argument info: `%s'",
+                      "failed to get named argument info: `%s'",
                       StringValuePtr(cmd));
         }
         op.dp.rgdispidNamedArgs = &(pDispID[1]);
@@ -2495,7 +2495,7 @@
 
     if(FAILED(hr)) {
         ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, 
-                  "Unknown property or method: `%s'",
+                  "unknown property or method: `%s'",
                   StringValuePtr(property));
     }
     /* set property value */
@@ -2606,7 +2606,7 @@
 
     if (FAILED(hr)) {
         VariantClear(&result);
-        ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, "Failed to get IEnum Interface");
+        ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, "failed to get IEnum Interface");
     }
 
     if (V_VT(&result) == VT_UNKNOWN)
@@ -2619,7 +2619,7 @@
                                                          (void**)&pEnum);
     if (FAILED(hr) || !pEnum) {
         VariantClear(&result);
-        ole_raise(hr, rb_eRuntimeError, "Failed to get IEnum Interface");
+        ole_raise(hr, rb_eRuntimeError, "failed to get IEnum Interface");
     }
 
     VariantClear(&result);
@@ -2645,7 +2645,7 @@
     id = rb_to_id(argv[0]);
     mname = rb_id2name(id);
     if(!mname) {
-        rb_raise(rb_eRuntimeError, "Fail: unknown method or property");
+        rb_raise(rb_eRuntimeError, "fail: unknown method or property");
     }
     n = strlen(mname);
     if(mname[n-1] == '=') {
@@ -2675,7 +2675,7 @@
     VALUE method = Qnil;
     hr = OLE_GET_TYPEATTR(pTypeInfo, &pTypeAttr);
     if (FAILED(hr)) {
-        ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, "Failed to GetTypeAttr");
+        ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, "failed to GetTypeAttr");
     }
     for(i = 0; i < pTypeAttr->cFuncs && method == Qnil; i++) {
         hr = pTypeInfo->lpVtbl->GetFuncDesc(pTypeInfo, i, &pFuncDesc);
@@ -2714,7 +2714,7 @@
     VALUE method = Qnil;
     hr = OLE_GET_TYPEATTR(pTypeInfo, &pTypeAttr);
     if (FAILED(hr)) {
-        ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, "Failed to GetTypeAttr");
+        ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, "failed to GetTypeAttr");
     }
     method = ole_method_sub(self, 0, pTypeInfo, name);
     if (method != Qnil) {
@@ -2750,7 +2750,7 @@
     WORD i;
     hr = OLE_GET_TYPEATTR(pTypeInfo, &pTypeAttr);
     if (FAILED(hr)) {
-        ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, "Failed to GetTypeAttr");
+        ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, "failed to GetTypeAttr");
     }
     for(i = 0; i < pTypeAttr->cFuncs; i++) {
         pstr = NULL;
@@ -2791,7 +2791,7 @@
     VALUE methods = rb_ary_new();
     hr = OLE_GET_TYPEATTR(pTypeInfo, &pTypeAttr);
     if (FAILED(hr)) {
-        ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, "Failed to GetTypeAttr");
+        ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, "failed to GetTypeAttr");
     }
 
     ole_methods_sub(0, pTypeInfo, methods, mask);
@@ -2824,7 +2824,7 @@
     HRESULT hr = pole->pDispatch->lpVtbl->GetTypeInfo(pole->pDispatch,
                                                       0, lcid, &pTypeInfo);
     if(FAILED(hr)) {
-        ole_raise(hr, rb_eRuntimeError, "Failed to GetTypeInfo");
+        ole_raise(hr, rb_eRuntimeError, "failed to GetTypeInfo");
     }
     hr = pTypeInfo->lpVtbl->GetDocumentation(pTypeInfo,
                                              -1,
@@ -2834,7 +2834,7 @@
     hr = pTypeInfo->lpVtbl->GetContainingTypeLib(pTypeInfo, &pTypeLib, &i);
     OLE_RELEASE(pTypeInfo);
     if (FAILED(hr)) {
-        ole_raise(hr, rb_eRuntimeError, "Failed to GetContainingTypeLib");
+        ole_raise(hr, rb_eRuntimeError, "failed to GetContainingTypeLib");
     }
     count = pTypeLib->lpVtbl->GetTypeInfoCount(pTypeLib);
     for (i = 0; i < count; i++) {
@@ -2969,12 +2969,12 @@
 
     hr = pole->pDispatch->lpVtbl->GetTypeInfo( pole->pDispatch, 0, lcid, &pTypeInfo );
     if(FAILED(hr)) {
-        ole_raise(hr, rb_eRuntimeError, "Failed to GetTypeInfo");
+        ole_raise(hr, rb_eRuntimeError, "failed to GetTypeInfo");
     }
     hr = pTypeInfo->lpVtbl->GetContainingTypeLib( pTypeInfo, &pTypeLib, &index );
     if(FAILED(hr)) {
         OLE_RELEASE(pTypeInfo);
-        ole_raise(hr, rb_eRuntimeError, "Failed to GetContainingTypeLib");
+        ole_raise(hr, rb_eRuntimeError, "failed to GetContainingTypeLib");
     }
     hr = pTypeLib->lpVtbl->GetDocumentation( pTypeLib, index,
                                              &bstr, NULL, NULL, NULL);
@@ -3033,12 +3033,12 @@
     hr = pole->pDispatch->lpVtbl->GetTypeInfo(pole->pDispatch,
                                               0, lcid, &pTypeInfo);
     if(FAILED(hr)) {
-        ole_raise(hr, rb_eRuntimeError, "Failed to GetTypeInfo");
+        ole_raise(hr, rb_eRuntimeError, "failed to GetTypeInfo");
     }
     hr = pTypeInfo->lpVtbl->GetContainingTypeLib(pTypeInfo, &pTypeLib, &index);
     if(FAILED(hr)) {
         OLE_RELEASE(pTypeInfo);
-        ole_raise(hr, rb_eRuntimeError, "Failed to GetContainingTypeLib");
+        ole_raise(hr, rb_eRuntimeError, "failed to GetContainingTypeLib");
     }
     OLE_RELEASE(pTypeInfo);
 
@@ -3053,7 +3053,7 @@
     pTypeLib->lpVtbl->ReleaseTLibAttr(pTypeLib, pTLibAttr);
     OLE_RELEASE(pTypeLib);
     if (guid == Qnil) {
-        rb_raise(eWIN32OLE_RUNTIME_ERROR, "Fail to get typelib");
+        rb_raise(eWIN32OLE_RUNTIME_ERROR, "failed to get typelib");
     }
     return make_oletypelib_obj(guid, major, minor);
 }
@@ -3294,12 +3294,12 @@
     OLEData_Get_Struct(self, pole);
     hr = typeinfo_from_ole(pole, &pTypeInfo);
     if(FAILED(hr))
-        ole_raise(hr, rb_eRuntimeError, "Failed to get ITypeInfo");
+        ole_raise(hr, rb_eRuntimeError, "failed to get ITypeInfo");
     method = folemethod_s_allocate(cWIN32OLE_METHOD);
     obj = olemethod_from_typeinfo(method, pTypeInfo, cmdname);
     OLE_RELEASE(pTypeInfo);
     if (obj == Qnil)
-        rb_raise(eWIN32OLE_RUNTIME_ERROR, "Not found %s",
+        rb_raise(eWIN32OLE_RUNTIME_ERROR, "not found %s",
                  StringValuePtr(cmdname));
     return obj;
 }
@@ -3336,7 +3336,7 @@
         pbuf = ole_mb2wc(StringValuePtr(file), -1);
         hr = LoadTypeLibEx(pbuf, REGKIND_NONE, &pTypeLib);
         if (FAILED(hr))
-          ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, "Failed to LoadTypeLibEx");
+          ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, "failed to LoadTypeLibEx");
         SysFreeString(pbuf);
         ole_classes_from_typelib(pTypeLib, classes);
         OLE_RELEASE(pTypeLib);
@@ -3753,7 +3753,7 @@
     }
 
     if (found == Qfalse) {
-        rb_raise(eWIN32OLE_RUNTIME_ERROR, "Not found type library `%s`",
+        rb_raise(eWIN32OLE_RUNTIME_ERROR, "not found type library `%s`",
                  StringValuePtr(typelib));
     }
     return self;
@@ -3922,12 +3922,12 @@
         hr = LoadTypeLibEx(pbuf, REGKIND_NONE, &pTypeLib);
         SysFreeString(pbuf);
         if (FAILED(hr))
-            ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, "Failed to LoadTypeLibEx from `%s'",
+            ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, "failed to LoadTypeLibEx from `%s'",
                       StringValuePtr(path));
         ole_classes_from_typelib(pTypeLib, classes);
         OLE_RELEASE(pTypeLib);
     } else {
-        rb_raise(eWIN32OLE_RUNTIME_ERROR, "Failed to get type library path");
+        rb_raise(eWIN32OLE_RUNTIME_ERROR, "failed to get type library path");
     }
     return classes;
 }
@@ -3970,11 +3970,11 @@
     pbuf = ole_mb2wc(StringValuePtr(file), -1);
     hr = LoadTypeLibEx(pbuf, REGKIND_NONE, &pTypeLib);
     if (FAILED(hr))
-        ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, "Failed to LoadTypeLibEx");
+        ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, "failed to LoadTypeLibEx");
     SysFreeString(pbuf);
     if (oleclass_from_typelib(self, pTypeLib, oleclass) == Qfalse) {
         OLE_RELEASE(pTypeLib);
-        rb_raise(eWIN32OLE_RUNTIME_ERROR, "Not found `%s` in `%s`",
+        rb_raise(eWIN32OLE_RUNTIME_ERROR, "not found `%s` in `%s`",
                  StringValuePtr(oleclass), StringValuePtr(typelib));
     }
     OLE_RELEASE(pTypeLib);
@@ -4178,7 +4178,7 @@
     HRESULT hr;
     hr = OLE_GET_TYPEATTR(pTypeInfo, &pTypeAttr);
     if (FAILED(hr))
-        ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, "Failed to GetTypeAttr");
+        ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, "failed to GetTypeAttr");
     ver = INT2FIX(pTypeAttr->wMajorVerNum);
     OLE_RELEASE_TYPEATTR(pTypeInfo, pTypeAttr);
     return ver;
@@ -4210,7 +4210,7 @@
     HRESULT hr;
     hr = OLE_GET_TYPEATTR(pTypeInfo, &pTypeAttr);
     if (FAILED(hr))
-        ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, "Failed to GetTypeAttr");
+        ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, "failed to GetTypeAttr");
     ver = INT2FIX(pTypeAttr->wMinorVerNum);
     OLE_RELEASE_TYPEATTR(pTypeInfo, pTypeAttr);
     return ver;
@@ -4242,7 +4242,7 @@
     HRESULT hr;
     hr = OLE_GET_TYPEATTR(pTypeInfo, &pTypeAttr);
     if (FAILED(hr))
-        ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, "Failed to GetTypeAttr");
+        ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, "failed to GetTypeAttr");
     typekind = INT2FIX(pTypeAttr->typekind);
     OLE_RELEASE_TYPEATTR(pTypeInfo, pTypeAttr);
     return typekind;
@@ -4410,7 +4410,7 @@
     VALUE variables = rb_ary_new();
     hr = OLE_GET_TYPEATTR(pTypeInfo, &pTypeAttr);
     if (FAILED(hr)) {
-        ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, "Failed to GetTypeAttr");
+        ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, "failed to GetTypeAttr");
     }
     
     for(i = 0; i < pTypeAttr->cVars; i++) {
@@ -4534,7 +4534,7 @@
     VALUE type;
     hr = pTypeInfo->lpVtbl->GetVarDesc(pTypeInfo, var_index, &pVarDesc);
     if (FAILED(hr))
-        ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, "Failed to GetVarDesc");
+        ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, "failed to GetVarDesc");
     type = ole_typedesc2val(pTypeInfo, &(pVarDesc->elemdescVar.tdesc), Qnil);
     pTypeInfo->lpVtbl->ReleaseVarDesc(pTypeInfo, pVarDesc);
     return type;
@@ -4579,7 +4579,7 @@
     VALUE type = rb_ary_new();
     hr = pTypeInfo->lpVtbl->GetVarDesc(pTypeInfo, var_index, &pVarDesc);
     if (FAILED(hr))
-        ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, "Failed to GetVarDesc");
+        ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, "failed to GetVarDesc");
     ole_typedesc2val(pTypeInfo, &(pVarDesc->elemdescVar.tdesc), type);
     pTypeInfo->lpVtbl->ReleaseVarDesc(pTypeInfo, pVarDesc);
     return type;
@@ -4870,12 +4870,12 @@
         Data_Get_Struct(oletype, struct oletypedata, ptype);
         obj = olemethod_from_typeinfo(self, ptype->pTypeInfo, method);
         if (obj == Qnil) {
-            rb_raise(eWIN32OLE_RUNTIME_ERROR, "Not found %s",
+            rb_raise(eWIN32OLE_RUNTIME_ERROR, "not found %s",
                      StringValuePtr(method));
         }
     }
     else {
-        rb_raise(rb_eTypeError, "1st argument should be WIN32OLE_TYPE object.");
+        rb_raise(rb_eTypeError, "1st argument should be WIN32OLE_TYPE object");
     }
     return obj;
 }
@@ -4909,7 +4909,7 @@
 
     hr = pTypeInfo->lpVtbl->GetFuncDesc(pTypeInfo, method_index, &pFuncDesc);
     if (FAILED(hr)) 
-        ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, "Failed to GetFuncDesc");
+        ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, "failed to GetFuncDesc");
     
     type = ole_typedesc2val(pTypeInfo, &(pFuncDesc->elemdescFunc.tdesc), Qnil);
     pTypeInfo->lpVtbl->ReleaseFuncDesc(pTypeInfo, pFuncDesc);
@@ -4946,7 +4946,7 @@
 
     hr = pTypeInfo->lpVtbl->GetFuncDesc(pTypeInfo, method_index, &pFuncDesc);
     if (FAILED(hr)) 
-        ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, "Failed to GetFuncDesc");
+        ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, "failed to GetFuncDesc");
     
     vt = INT2FIX(pFuncDesc->elemdescFunc.tdesc.vt);
     pTypeInfo->lpVtbl->ReleaseFuncDesc(pTypeInfo, pFuncDesc);
@@ -5019,7 +5019,7 @@
     VALUE invkind;
     hr = pTypeInfo->lpVtbl->GetFuncDesc(pTypeInfo, method_index, &pFuncDesc);
     if(FAILED(hr)) 
-        ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, "Failed to GetFuncDesc");
+        ole_raise(hr, eWIN32OLE_RUNTIME_ERROR, "failed to GetFuncDesc");
     invkind = INT2FIX(pFuncDesc->invkind);
     pTypeInfo->lpVtbl->ReleaseFuncDesc(pTypeInfo, pFuncDesc);
     return invkind;
@@ -6403,7 +6403,7 @@
     rb_scan_args(argc, argv, "11", &ole, &itf);
 
     if (!rb_obj_is_kind_of(ole, cWIN32OLE)) {
-        rb_raise(rb_eTypeError, "1st parameter must be WIN32OLE object.");
+        rb_raise(rb_eTypeError, "1st parameter must be WIN32OLE object");
     }
 
     if(TYPE(itf) != T_NIL) {
@@ -6430,7 +6430,7 @@
     if (FAILED(hr)) {
         OLE_RELEASE(pTypeInfo);
         ole_raise(hr, rb_eRuntimeError,
-                  "Failed to query IConnectionPointContainer");
+                  "failed to query IConnectionPointContainer");
     }
 
     hr = pContainer->lpVtbl->FindConnectionPoint(pContainer,
@@ -6439,7 +6439,7 @@
     OLE_RELEASE(pContainer);
     if (FAILED(hr)) {
         OLE_RELEASE(pTypeInfo);
-        ole_raise(hr, rb_eRuntimeError, "Failed to query IConnectionPoint");
+        ole_raise(hr, rb_eRuntimeError, "failed to query IConnectionPoint");
     }
     pIEV = EVENTSINK_Constructor();
     pIEV->m_iid = iid;
Index: ext/zlib/zlib.c
===================================================================
RCS file: /src/ruby/ext/zlib/zlib.c,v
retrieving revision 1.26
diff -u -r1.26 zlib.c
--- ext/zlib/zlib.c	6 Jan 2005 11:29:58 -0000	1.26
+++ ext/zlib/zlib.c	26 Feb 2005 23:08:05 -0000
@@ -2201,7 +2201,7 @@
 	}
         if (!NIL_P(outbuf))
             rb_str_resize(outbuf, 0);
-	rb_raise(rb_eEOFError, "End of file reached");
+	rb_raise(rb_eEOFError, "end of file reached");
     }
 
     dst = zstream_shift_buffer(&gz->z, len);
@@ -3100,7 +3100,7 @@
     VALUE dst;
     dst = rb_gzreader_getc(obj);
     if (NIL_P(dst)) {
-	rb_raise(rb_eEOFError, "End of file reached");
+	rb_raise(rb_eEOFError, "end of file reached");
     }
     return dst;
 }
@@ -3282,7 +3282,7 @@
     VALUE dst;
     dst = rb_gzreader_gets(argc, argv, obj);
     if (NIL_P(dst)) {
-	rb_raise(rb_eEOFError, "End of file reached");
+	rb_raise(rb_eEOFError, "end of file reached");
     }
     return dst;
 }