[前][次][番号順一覧][スレッド一覧]

ruby-changes:33406

From: usa <ko1@a...>
Date: Mon, 31 Mar 2014 15:38:30 +0900 (JST)
Subject: [ruby-changes:33406] usa:r45485 (ruby_1_9_3): merge revision(s) 45271: [Backport #9672]

usa	2014-03-31 15:38:23 +0900 (Mon, 31 Mar 2014)

  New Revision: 45485

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45485

  Log:
    merge revision(s) 45271: [Backport #9672]
    
    * ext/openssl/ossl.c (ossl_make_error): check NULL for unknown
      error reasons with old OpenSSL, and insert a colon iff formatted
      message is not empty.

  Modified directories:
    branches/ruby_1_9_3/
  Modified files:
    branches/ruby_1_9_3/ChangeLog
    branches/ruby_1_9_3/ext/openssl/ossl.c
    branches/ruby_1_9_3/version.h
Index: ruby_1_9_3/ChangeLog
===================================================================
--- ruby_1_9_3/ChangeLog	(revision 45484)
+++ ruby_1_9_3/ChangeLog	(revision 45485)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ruby_1_9_3/ChangeLog#L1
+Mon Mar 31 15:38:07 2014  Nobuyoshi Nakada  <nobu@r...>
+
+	* ext/openssl/ossl.c (ossl_make_error): check NULL for unknown
+	  error reasons with old OpenSSL, and insert a colon iff formatted
+	  message is not empty.
+
 Mon Feb 24 12:42:01 2014  Zachary Scott  <e@z...>
 
 	* lib/open-uri.rb: [DOC] use lower case version of core classes, same
Index: ruby_1_9_3/ext/openssl/ossl.c
===================================================================
--- ruby_1_9_3/ext/openssl/ossl.c	(revision 45484)
+++ ruby_1_9_3/ext/openssl/ossl.c	(revision 45485)
@@ -302,10 +302,11 @@ ossl_make_error(VALUE exc, const char *f https://github.com/ruby/ruby/blob/trunk/ruby_1_9_3/ext/openssl/ossl.c#L302
 	else
 	    msg = ERR_reason_error_string(e);
 	if (NIL_P(str)) {
-	    str = rb_str_new_cstr(msg);
+	    if (msg) str = rb_str_new_cstr(msg);
 	}
 	else {
-	    rb_str_cat2(rb_str_cat2(str, ": "), msg);
+	    if (RSTRING_LEN(str)) rb_str_cat2(str, ": ");
+	    rb_str_cat2(str, msg ? msg : "(null)");
 	}
     }
     if (dOSSL == Qtrue){ /* show all errors on the stack */
Index: ruby_1_9_3/version.h
===================================================================
--- ruby_1_9_3/version.h	(revision 45484)
+++ ruby_1_9_3/version.h	(revision 45485)
@@ -1,10 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ruby_1_9_3/version.h#L1
 #define RUBY_VERSION "1.9.3"
-#define RUBY_PATCHLEVEL 545
+#define RUBY_PATCHLEVEL 546
 
-#define RUBY_RELEASE_DATE "2014-02-24"
+#define RUBY_RELEASE_DATE "2014-03-31"
 #define RUBY_RELEASE_YEAR 2014
-#define RUBY_RELEASE_MONTH 2
-#define RUBY_RELEASE_DAY 24
+#define RUBY_RELEASE_MONTH 3
+#define RUBY_RELEASE_DAY 31
 
 #include "ruby/version.h"
 

Property changes on: ruby_1_9_3
___________________________________________________________________
Modified: svn:mergeinfo
   Merged /trunk:r45271


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]