diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2009-11-14 18:34:57 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2009-11-14 18:34:57 -0800 |
commit | 19cdd145d345c4560ccc9d841025415e9696b64e (patch) | |
tree | d93b2eebb6fd855774667b0e8a361f2f130f653c /stream.c | |
parent | d3aceae6d8c4e37e0d7fb8290a9ae58fc9f7a149 (diff) | |
download | txr-19cdd145d345c4560ccc9d841025415e9696b64e.tar.gz txr-19cdd145d345c4560ccc9d841025415e9696b64e.tar.bz2 txr-19cdd145d345c4560ccc9d841025415e9696b64e.zip |
Provide both char * and unsigned char * interfaces in UTF-8 module.
Fix unsigned and plan char * mixing.
Diffstat (limited to 'stream.c')
-rw-r--r-- | stream.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -629,7 +629,7 @@ obj_t *make_string_byte_input_stream(obj_t *string) { struct byte_input *bi = (struct byte_input *) chk_malloc(sizeof *bi); - unsigned char *utf8 = utf8_dup_to(c_str(string)); + unsigned char *utf8 = utf8_dup_to_uc(c_str(string)); bi->buf = utf8; bi->size = strlen((char *) utf8); bi->index = 0; |