From: Aaron Patterson Date: 2012-07-29T10:41:23+09:00 Subject: [ruby-core:46846] Re: [ruby-trunk - Bug #6799] Digest::*.hexdigest returns an ASCII-8BIT String --/9DWx/yDrRhgMJTb Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 27, 2012 at 07:34:30PM +0900, Eregon (Benoit Daloze) wrote: >=20 > Issue #6799 has been updated by Eregon (Benoit Daloze). >=20 >=20 > duerst (Martin D=FCrst) wrote: > > So what should it return? [If you create a bug, saying what the expecte= d behavior is (and also why you expect it) is quite important.] >=20 > I thought it was clear enough, but indeed I should have mentioned it. > An hexadecimal String like this should have the US-ASCII encoding, becaus= e, by definition, it only has ASCII characters ([a-f0-9]). FWIW, I would like this feature too. In Rails, we have to work around this issue in some database drivers because the ASCII-8BIT string will be considered to be binary. --=20 Aaron Patterson http://tenderlovemaking.com/ --/9DWx/yDrRhgMJTb Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (Darwin) iQEcBAEBAgAGBQJQFJTAAAoJEJUxcLy0/6/GrQcH/jDl2lm7/f+JR5N6ksNtMZmd Fswl8t5r5pkmEdWcAHkZF16FkZG66vznQhyx+OgRO4r9k+uTIuBVkygmiBvnEb8i s/aqH8eC7jwyo7v8+pWmFgvNMqlVLgEXjO2r7j/8zhHlu61X6QZRK3eOCwJvipjX mxgCMFr2bSOqgdPOep8YWUhL2QT1jqA+8CCuc2a37Qf6NqmVkhYZZdSEQC7Gfz4a +XnxByMn0ehIpOCHRrC2GlDi8jq9SgI34upkfG5DmGgjV8BLeMVwuJfkk6EsCiO0 HAPsDPMb9UzTOGlJxXclKeurYU6rC9lbSl2sOeNhW12cTf7u812aOAyuJF3dkh8= =YSQq -----END PGP SIGNATURE----- --/9DWx/yDrRhgMJTb--