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

Diff of /lbbs/src/main.c

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

Revision 1.72 by sysadm, Fri Nov 7 04:58:09 2025 UTC Revision 1.73 by sysadm, Sat Nov 8 08:21:31 2025 UTC
# Line 19  Line 19 
19  #include "user_list.h"  #include "user_list.h"
20  #include <errno.h>  #include <errno.h>
21  #include <libgen.h>  #include <libgen.h>
22    #include <locale.h>
23  #include <signal.h>  #include <signal.h>
24  #include <stdio.h>  #include <stdio.h>
25  #include <stdlib.h>  #include <stdlib.h>
# Line 133  int main(int argc, char *argv[]) Line 134  int main(int argc, char *argv[])
134                  return -1;                  return -1;
135          }          }
136    
137            // Apply the specified locale
138            if (setlocale(LC_ALL, "en_US.UTF-8") == NULL)
139            {
140                    fprintf(stderr, "setlocale(LC_ALL, en_US.UTF-8) error\n");
141                    return -1;
142            }
143    
144          // Initialize log          // Initialize log
145          if (log_begin(LOG_FILE_INFO, LOG_FILE_ERROR) < 0)          if (log_begin(LOG_FILE_INFO, LOG_FILE_ERROR) < 0)
146          {          {


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

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