/[LeafOK_CVS]/lbbs/src/io.c
ViewVC logotype

Diff of /lbbs/src/io.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.58 by sysadm, Sun Oct 19 09:09:18 2025 UTC Revision 1.59 by sysadm, Sun Oct 19 13:13:07 2025 UTC
# Line 988  int io_buf_conv(iconv_t cd, char *p_buf, Line 988  int io_buf_conv(iconv_t cd, char *p_buf,
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++;
# Line 1025  int io_conv_init(const char *charset) Line 1031  int io_conv_init(const char *charset)
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    


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1