mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-17 23:02:31 -08:00
pasthrough_encoder() should only reference encoding_error() when we have encodings.
This commit is contained in:
parent
63d83b0780
commit
ee7ce02155
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue