attempt to fix utf8 conversion on linux
This commit is contained in:
parent
f8b6c4dc89
commit
0e16613143
@ -35,7 +35,7 @@ OBJ = inih/ini.o bbs.o main.o users.o main_menu.o mail_menu.o doors.o bbs_list.o
|
|||||||
$(CC) -c -o $@ $< $(CFLAGS)
|
$(CC) -c -o $@ $< $(CFLAGS)
|
||||||
|
|
||||||
magicka: $(OBJ) ${LUA} ${ZMODEM} ${JAMLIB} ${JSMN}
|
magicka: $(OBJ) ${LUA} ${ZMODEM} ${JAMLIB} ${JSMN}
|
||||||
$(CC) -o magicka -o $@ $^ $(CFLAGS) -L/usr/local/lib -lsqlite3 -lutil -lm -ldl -lssl -lcrypto -lssh -liconv
|
$(CC) -o magicka -o $@ $^ $(CFLAGS) -L/usr/local/lib -lsqlite3 -lutil -lm -ldl -lssl -lcrypto -lssh
|
||||||
|
|
||||||
magimail: $(JAMLIB)
|
magimail: $(JAMLIB)
|
||||||
cd utils/magimail && $(MAKE) linux
|
cd utils/magimail && $(MAKE) linux
|
||||||
|
@ -39,7 +39,7 @@ OBJ = deps/aha/aha.o inih/ini.o bbs.o main.o users.o main_menu.o mail_menu.o do
|
|||||||
$(CC) -c -o $@ $< $(CFLAGS)
|
$(CC) -c -o $@ $< $(CFLAGS)
|
||||||
|
|
||||||
magicka: $(OBJ) ${LUA} ${JAMLIB} ${ZMODEM} ${B64} ${JSMN}
|
magicka: $(OBJ) ${LUA} ${JAMLIB} ${ZMODEM} ${B64} ${JSMN}
|
||||||
$(CC) -o magicka -o $@ $^ $(CFLAGS) -L/usr/local/lib -lsqlite3 -lutil -lm -ldl -lssl -lcrypto -lssh -liconv $(MICROHTTPD)
|
$(CC) -o magicka -o $@ $^ $(CFLAGS) -L/usr/local/lib -lsqlite3 -lutil -lm -ldl -lssl -lcrypto -lssh $(MICROHTTPD)
|
||||||
|
|
||||||
magimail: $(JAMLIB)
|
magimail: $(JAMLIB)
|
||||||
cd utils/magimail && $(MAKE) linux
|
cd utils/magimail && $(MAKE) linux
|
||||||
|
4
bbs.c
4
bbs.c
@ -246,7 +246,7 @@ void s_putchar(char c) {
|
|||||||
if (sshBBS) {
|
if (sshBBS) {
|
||||||
fprintf(stdout, "%s", ptr1);
|
fprintf(stdout, "%s", ptr1);
|
||||||
} else {
|
} else {
|
||||||
write(gSocket, ptr1, strlen(ptr1));
|
write(gSocket, ptr1, outbuf - ptr1);
|
||||||
}
|
}
|
||||||
iconv_close(ic);
|
iconv_close(ic);
|
||||||
free(ptr1);
|
free(ptr1);
|
||||||
@ -282,7 +282,7 @@ void s_putstring(char *c) {
|
|||||||
if (sshBBS) {
|
if (sshBBS) {
|
||||||
fprintf(stdout, "%s", ptr1);
|
fprintf(stdout, "%s", ptr1);
|
||||||
} else {
|
} else {
|
||||||
write(gSocket, ptr1, strlen(ptr1));
|
write(gSocket, ptr1, outbuf - ptr1);
|
||||||
}
|
}
|
||||||
iconv_close(ic);
|
iconv_close(ic);
|
||||||
free(ptr1);
|
free(ptr1);
|
||||||
|
Reference in New Issue
Block a user