mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
fix platform::detect_locale
This commit is contained in:
parent
0e72f6c13a
commit
1cdea1cb81
1 changed files with 1 additions and 1 deletions
|
|
@ -102,7 +102,7 @@ std::string platform::detect_locale() {
|
|||
if (programLocaleName && preferredLocaleName) {
|
||||
setlocale(LC_ALL, programLocaleName);
|
||||
|
||||
return std::string(preferredLocaleName, 5);
|
||||
return std::string(preferredLocaleName);
|
||||
}
|
||||
return langs::FALLBACK_DEFAULT;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue