The R Project SVN R

Rev

Rev 75033 | Rev 77953 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 75033 Rev 76949
Line 452... Line 452...
452
	bufp++;
452
	bufp++;
453
    }
453
    }
454
    *bufp = '\0';
454
    *bufp = '\0';
455
    /* Remove UTF-8 BOM */
455
    /* Remove UTF-8 BOM */
456
    if(d->atStart && utf8locale &&
456
    if(d->atStart && utf8locale &&
457
       !memcmp(buffer->data, "\xef\xbb\xbf", 3))
457
       !strncmp(buffer->data, "\xef\xbb\xbf", 3))
458
	memmove(buffer->data, buffer->data+3, strlen(buffer->data) + 1);
458
	memmove(buffer->data, buffer->data+3, strlen(buffer->data) + 1);
459
    d->atStart = FALSE;
459
    d->atStart = FALSE;
460
    *bch = filled;
460
    *bch = filled;
461
    return buffer->data;
461
    return buffer->data;
462
}
462
}