pasthrough_encoder() should only reference encoding_error() when we have encodings.

This commit is contained in:
Juan Jose Garcia Ripoll 2011-04-13 22:04:21 +02:00
parent 63d83b0780
commit ee7ce02155

View file

@ -679,9 +679,11 @@ passthrough_decoder(cl_object stream)
static int
passthrough_encoder(cl_object stream, unsigned char *buffer, ecl_character c)
{
#ifdef ECL_UNICODE
unlikely_if (c > 0xFF) {
return encoding_error(stream, buffer, c);
}
#endif
buffer[0] = c;
return 1;
}