Skip to content
Snippets Groups Projects
Commit fffc06b2 authored by rswindell's avatar rswindell
Browse files

Use new header file: cp437defs.h

parent afc18c78
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,7 @@
#include "sbbs.h"
#include "utf8.h"
#include "unicode.h"
#include "cp437defs.h"
/****************************************************************************/
/* Outputs a NULL terminated string locally and remotely (if applicable) */
......@@ -265,7 +266,7 @@ size_t sbbs_t::utf8_to_cp437(const char* str, size_t len)
if(ch)
outchar(ch);
else if(!unicode_is_zerowidth(codepoint)) {
outchar('\xA8'); // Inverted question mark
outchar(CP437_CHAR_INVERTED_QUESTION_MARK);
char seq[32] = "";
for(size_t i = 0; i < len; i++)
sprintf(seq + strlen(seq), "%02X ", (uchar)*(str + i));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment