summaryrefslogtreecommitdiffstats
path: root/transcode.c
diff options
context:
space:
mode:
Diffstat (limited to 'transcode.c')
-rw-r--r--transcode.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/transcode.c b/transcode.c
index aeb9fe5cd..fba247a71 100644
--- a/transcode.c
+++ b/transcode.c
@@ -505,6 +505,7 @@ transcode_restartable0(const unsigned char **in_pos, unsigned char **out_pos,
case 30: goto resume_label30;
case 31: goto resume_label31;
case 32: goto resume_label32;
+ case 33: goto resume_label33;
}
while (1) {
@@ -539,8 +540,16 @@ transcode_restartable0(const unsigned char **in_pos, unsigned char **out_pos,
}
follow_info:
switch (next_info & 0x1F) {
- case NOMAP: /* xxx: copy last byte only? */
- SUSPEND_OBUF(3); *out_p++ = next_byte;
+ case NOMAP:
+ SUSPEND_OBUF(3); *out_p++ = next_byte;
+ continue;
+ case ASIS:
+ {
+ const unsigned char *p = inchar_start;
+ while (p < in_p) {
+ SUSPEND_OBUF(33); *out_p++ = (unsigned char)*p++;
+ }
+ }
continue;
case 0x00: case 0x04: case 0x08: case 0x0C:
case 0x10: case 0x14: case 0x18: case 0x1C: