Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/str.c
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,14 @@ void Str_Init(void)
mapUnicodeToAtari[mapAtariToUnicode[i] & 511] = i;
}

#if defined(WIN32) || defined(USE_LOCALE_CHARSET)
#if defined(LIBRETRO) && (defined(WIN32) || defined(USE_LOCALE_CHARSET))
/* Use LC_CTYPE instead of LC_ALL so character handling follows the
* user's locale without changing numeric formatting, preventing
* locale-specific decimal separators (e.g. 1,0000) in RetroArch
* configuration files.
*/
setlocale(LC_CTYPE, "");
#elif defined(WIN32) || defined(USE_LOCALE_CHARSET)
/* Change libc from default "C" locale to one
* specified by the program environment. Needed
* only for Windows, as Unix based OSes (are
Expand Down