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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/metainfo.c

    r10774 r10963  
    170170        }
    171171
    172         *setme = tr_utf8clean( (char*)EVBUFFER_DATA( buf ), EVBUFFER_LENGTH( buf ), NULL );
     172        *setme = tr_utf8clean( (char*)EVBUFFER_DATA( buf ), EVBUFFER_LENGTH( buf ) );
    173173        /* fprintf( stderr, "[%s]\n", *setme ); */
    174174        evbuffer_free( buf );
     
    413413    tr_benc *       infoDict = NULL;
    414414    tr_benc *       meta = (tr_benc *) meta_in;
    415     tr_bool         err;
    416415    tr_bool         b;
    417416    tr_bool         isMagnet = FALSE;
     
    472471            return "name";
    473472        tr_free( inf->name );
    474         inf->name = tr_utf8clean( str, -1, &err );
     473        inf->name = tr_utf8clean( str, -1 );
    475474    }
    476475
     
    480479            str = "";
    481480    tr_free( inf->comment );
    482     inf->comment = tr_utf8clean( str, -1, &err );
     481    inf->comment = tr_utf8clean( str, -1 );
    483482
    484483    /* created by */
     
    487486            str = "";
    488487    tr_free( inf->creator );
    489     inf->creator = tr_utf8clean( str, -1, &err );
     488    inf->creator = tr_utf8clean( str, -1 );
    490489
    491490    /* creation date */
Note: See TracChangeset for help on using the changeset viewer.