bugfix in fmt_digest (conversion to UTF8)
@@ -621,7 +621,7 @@ static void md5_finish( md5_context *ctx, uint8 digest[16] ) {
HL_PRIM void HL_NAME(digest)( vbyte *out, vbyte *in, int length, int format ) {
if( format & 256 ) {
in = hl_to_utf8((uchar*)in);
- length = hl_utf8_length(in, 0);
+ length = strlen((char*)in);
}
switch( format & 0xFF ) {
case 0:
