| 1807 |
unsigned char buff8[8]; |
unsigned char buff8[8]; |
| 1808 |
int ii, utn; |
int ii, utn; |
| 1809 |
if (use_utf8) |
if (use_utf8) |
| 1810 |
{ |
{ |
| 1811 |
utn = ord2utf8(c, buff8); |
utn = ord2utf8(c, buff8); |
| 1812 |
for (ii = 0; ii < utn - 1; ii++) *q++ = buff8[ii]; |
for (ii = 0; ii < utn - 1; ii++) *q++ = buff8[ii]; |
| 1813 |
c = buff8[ii]; /* Last byte */ |
c = buff8[ii]; /* Last byte */ |
| 1814 |
} |
} |
| 1815 |
else |
else |
| 1816 |
{ |
{ |
| 1817 |
if (c > 255) |
if (c > 255) |
| 1818 |
fprintf(outfile, "** Character \\x{%x} is greater than 255 and " |
fprintf(outfile, "** Character \\x{%x} is greater than 255 and " |
| 1819 |
"UTF-8 mode is not enabled.\n" |
"UTF-8 mode is not enabled.\n" |
| 1820 |
"** Truncation will probably give the wrong result.\n", c); |
"** Truncation will probably give the wrong result.\n", c); |
| 1821 |
} |
} |
| 1822 |
p = pt + 1; |
p = pt + 1; |
| 1823 |
break; |
break; |
| 1824 |
} |
} |