[ruby-cvs:55478] nobu:r48328 (trunk): securerandom.rb: fix substring of FormatMessage result

nobu at ruby-lang.org nobu at ruby-lang.org
Sun Nov 9 10:31:05 JST 2014


nobu	2014-11-09 10:31:05 +0900 (Sun, 09 Nov 2014)

  New Revision: 48328

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

  Log:
    securerandom.rb: fix substring of FormatMessage result
    
    * 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.

  Modified files:
    trunk/ChangeLog
    trunk/lib/securerandom.rb


More information about the ruby-cvs mailing list