summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--lib/securerandom.rb1
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f669ca4733..40ab4723de 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Sun Nov 9 10:31:03 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/securerandom.rb: set the script encoding to make a string
+ literal in SecureRandom::Kernel32.last_error_message single byte
+ encoding so msg[] works in bytes, since FormatMessage() returns
+ the size in TCHARs, not in characters.
+
Sun Nov 9 09:50:22 2014 Tanaka Akira <akr@fsij.org>
* test/webrick: Refine log tests.
diff --git a/lib/securerandom.rb b/lib/securerandom.rb
index a0f7b13da8..6319c2cd89 100644
--- a/lib/securerandom.rb
+++ b/lib/securerandom.rb
@@ -1,3 +1,4 @@
+# -*- coding: us-ascii -*-
begin
require 'openssl'
rescue LoadError