diff --git a/port/src/input.c b/port/src/input.c index 13f192b42..3912e28d8 100644 --- a/port/src/input.c +++ b/port/src/input.c @@ -990,6 +990,13 @@ const char *inputGetConnectedControllerName(s32 id) snprintf(fullName, sizeof(fullName), "%d: %s", jidx, name); + // replace non-ascii chars with spaces + for (char *p = fullName; *p; ++p) { + if ((u32)*p >= 0x7f) { + *p = ' '; + } + } + return fullName; }