Ticket #120: utf8_conversions.diff

File utf8_conversions.diff, 320 bytes (added by johndrinkwater, 19 years ago)

Add (*srcLen == 0) case

  • .cpp

    old new  
    3131    if (*srcLen == 0) {
    3232        // nothing to do!
    3333        DEBPRINT(("nothing to do\n"));
     34        dst[0] = '\0';
     35        *dstLen = 0;
    3436        return B_OK;
    3537    }
    3638    iconv_t conversion = iconv_open(to,from);