Ignore:
Timestamp:
Jul 7, 2010, 4:48:24 PM (12 years ago)
Author:
charles
Message:

(2.0x libT) #3397 "checksum errors when downloading files whose names are encoded in iso-8859-1" -- fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0x/libtransmission/utils-test.c

    r10239 r10964  
    153153    const char * in;
    154154    char * out;
    155     tr_bool err;
    156155
    157156    in = "hello world";
    158     out = tr_utf8clean( in, -1, &err );
    159     check( err == FALSE )
     157    out = tr_utf8clean( in, -1 );
    160158    check( out != NULL )
    161159    check( !strcmp( out, in ) )
     
    163161
    164162    in = "hello world";
    165     out = tr_utf8clean( in, 5, &err );
    166     check( err == FALSE )
     163    out = tr_utf8clean( in, 5 );
    167164    check( out != NULL )
    168165    check( !strcmp( out, "hello" ) )
     
    171168    /* this version is not utf-8 */
    172169    in = "Òðóäíî áûòü Áîãîì";
    173     out = tr_utf8clean( in, 17, &err );
     170    out = tr_utf8clean( in, 17 );
    174171    check( out != NULL )
    175     check( err != 0 )
    176172    check( strlen( out ) == 17 )
    177173    check( tr_utf8_validate( out, -1, NULL ) )
     
    180176    /* same string, but utf-8 clean */
    181177    in = "ÒðóÀíî áûòÌ Áîãîì";
    182     out = tr_utf8clean( in, -1, &err );
     178    out = tr_utf8clean( in, -1 );
    183179    check( out != NULL )
    184     check( !err );
    185180    check( tr_utf8_validate( out, -1, NULL ) )
    186181    check ( !strcmp( in, out ) )
Note: See TracChangeset for help on using the changeset viewer.