Failure: test_str_crypt on Darwin x64


#1

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.

  1. 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


#2

e$B@>;3OB9-$G$9!#e(B

At Sun, 25 Jan 2009 00:43:15 +0900,
TAKANO Mitsuhiro wrote:

  1. 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.">.

e$BLdBj$NH/@82U=j$,e(B
http://redmine.ruby-lang.org/issues/show/466
e$B$HF1$8$h$&$J$N$G!"e(BBROKEN_CRYPTe$B$K$7$F$7$^$($PNI$5$=$&$K;W$$$^$9!#e(B

e$B$=$N$?$a$K$Oe(Bconfiguree$B$G%A%’%C%/$9$k$?$a$NC;$$Nc$,$"$l$P$$$$$N$G$9$,!#e(B