fixed last commit

This commit is contained in:
oy 2017-12-10 19:37:38 +01:00
parent f9f8cabc4b
commit bda625de12

View file

@ -134,6 +134,8 @@ static void logger_win_console(const char *line)
// an error, end the string here.
glyph = UNICODE_REPLACEMENT_CHAR;
error = INVALID_UTF8;
wline[len] = glyph;
break;
}
else if(glyph == 0)
{
@ -148,6 +150,12 @@ static void logger_win_console(const char *line)
// but rather emit a replacement character.
glyph = UNICODE_REPLACEMENT_CHAR;
}
else if(glyph == 0x2022)
{
// The 'bullet' character might get converted to a 'beep',
// so it will be replaced by the 'bullet operator'.
glyph = 0x2219;
}
// Again, since the windows console does not really support
// UTF-16, but rather something along the lines of UCS-2,