Commit b0a24ac8 authored by Sam Lantinga's avatar Sam Lantinga

Daniel Wyatt to slouken

I also found a bug in the non-printable character fix.
In SDL_keyboard.c:SDL_SendKeyboardText:
    if (*text < ' ' || *text == 127) {
needs to be:
    if ((unsigned char)*text < ' ' || *text == 127) {

Otherwise bytes >= 128 will be considered non-printable.
parent 106aea6e
......@@ -768,7 +768,7 @@ SDL_SendKeyboardText(const char *text)
int posted;
/* Don't post text events for unprintable characters */
if (*text < ' ' || *text == 127) {
if ((unsigned char)*text < ' ' || *text == 127) {
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment