1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/digest/lib/digest/hmac.rb (Digest::HMAC#initialize): use

String#bytesize to avoid test errors on EUC-JP environment.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-01-04 07:26:14 +00:00
parent f780cdec75
commit 386e2d94d8
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Fri Jan 4 16:24:58 2008 Tanaka Akira <akr@fsij.org>
* ext/digest/lib/digest/hmac.rb (Digest::HMAC#initialize): use
String#bytesize to avoid test errors on EUC-JP environment.
Fri Jan 4 14:00:50 2008 Tanaka Akira <akr@fsij.org>
* re.c (rb_reg_prepare_re): check string encoding. Oniguruma doesn't

View file

@ -45,7 +45,7 @@ module Digest
block_len = @md.block_length
if key.length > block_len
if key.bytesize > block_len
key = @md.digest(key)
end