| 988 |
return -2; |
return -2; |
| 989 |
} |
} |
| 990 |
|
|
| 991 |
|
// reset in_bytes when "//IGNORE" is applied |
| 992 |
|
if (in_bytes == 0) |
| 993 |
|
{ |
| 994 |
|
in_bytes = (size_t)(*p_buf_len - *p_buf_offset); |
| 995 |
|
} |
| 996 |
|
|
| 997 |
*out_buf = *in_buf; |
*out_buf = *in_buf; |
| 998 |
in_buf++; |
in_buf++; |
| 999 |
out_buf++; |
out_buf++; |
| 1031 |
strncpy(stdio_charset, charset, sizeof(stdio_charset) - 1); |
strncpy(stdio_charset, charset, sizeof(stdio_charset) - 1); |
| 1032 |
stdio_charset[sizeof(stdio_charset) - 1] = '\0'; |
stdio_charset[sizeof(stdio_charset) - 1] = '\0'; |
| 1033 |
|
|
| 1034 |
stdin_cd = iconv_open(BBS_DEFAULT_CHARSET "//TRANSLIT", stdio_charset); |
stdin_cd = iconv_open(BBS_DEFAULT_CHARSET "//IGNORE", stdio_charset); |
| 1035 |
if (stdin_cd == (iconv_t)(-1)) |
if (stdin_cd == (iconv_t)(-1)) |
| 1036 |
{ |
{ |
| 1037 |
log_error("iconv_open(%s->%s) error: %d\n", stdio_charset, BBS_DEFAULT_CHARSET "//TRANSLIT", errno); |
log_error("iconv_open(%s->%s) error: %d\n", stdio_charset, BBS_DEFAULT_CHARSET "//IGNORE", errno); |
| 1038 |
return -2; |
return -2; |
| 1039 |
} |
} |
| 1040 |
|
|