e$B$3$s$K$A$Oe(B
e$B9bLn$G$9!#e(B
Darwine$B$Ge(Bx86_64e$B$N%P%$%J%j$r:n@.$7!"%F%9%H$r$7$F$$$?$i$*$+$7$J5sF0$,$"$j$^e(B
e$B$7$?!#e(B
test_m17n_comb.rb e$B$GJ8;zNs$Ne(Bcrypte$B$r$7$F$$$k$H$3$m$G$9!#e(B
$ file ./ruby
./ruby: Mach-O 64-bit executable x86_64
$ ./ruby -v
ruby 1.9.1p5000 (2009-01-24 trunk 21752) [i386-darwin9.6.0]
$ ./ruby test/ruby/test_m17n_comb.rb
Loaded suite test/ruby/test_m17n_comb
Started
…F…
Finished in 31.632222 seconds.
- Failure:
test_str_crypt(TestM17NComb) [test/ruby/test_m17n_comb.rb:799]:
“”.force_encoding(“ASCII-8BIT”).crypt("\u{80}".force_encoding(“UTF-8”)).
<"\xC2\x80sGOfrtmSfNA"> expected but was
<"\xC2\x804HfcgwtVA4.">.
76 tests, 257977 assertions, 1 failures, 0 errors, 0 skips
irbe$B$G$$$8$k$He(Ba(salt)e$B$r$7$?>uBV!"$D$^$je(BString#dupe$B$r;H$&$HCM$,JQ2=$7$F$$$ke(B
e$B$h$&$G$9!#e(B
irb(main):009:0>
“”.force_encoding(“ASCII-8BIT”).crypt("\u{80}".force_encoding(“ASCII-8BIT”))
=> “\xC2\x804HfcgwtVA4.”
irb(main):010:0>
“”.force_encoding(“ASCII-8BIT”).crypt("\u{80}".dup.force_encoding(“ASCII-8BIT”))
=> “\xC2\x80sGOfrtmSfNA”
e$BF1%U%!%$%k$Ne(Bmodule
AESUe$B$NCf$Ge(BString#dupe$B$7$F$$$k$N$G!"$=$l$,$J$K$+1F6A$7e(B
e$B$F$$$k$h$&$K;W$($^$7$?!#e(B
e$B%F%9%H$NF~NO$H=PNO$,GD0.$G$-$^$;$s$G$7$?$N$G!"$3$A$i$KEj9F$5$;$F$$$?$@$-e(B
e$B$^$7$?!#e(B