Skip to content

Commit

Permalink
macOS/Simulator: fixing build issue with locales
Browse files Browse the repository at this point in the history
fixes #197
  • Loading branch information
Shchvova committed Dec 17, 2020
1 parent b2b49bb commit 2c71565
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions platform/mac/Rtt_IOSAppPackager.mm
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@
lua_setfield(L, -2, "build");

char templateZip[255];
setlocale(LC_NUMERIC, "en_US");
snprintf(templateZip, 255, "%s_%.1f%s.tar.bz", platform, params->GetTargetVersion()/10000.0f, params->GetCustomTemplate());
lua_pushstring(L, templateZip);
lua_setfield(L, -2, "template");
Expand Down
1 change: 1 addition & 0 deletions platform/mac/Rtt_TVOSAppPackager.mm
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@
lua_setfield(L, -2, "build");

char templateZip[255];
setlocale(LC_NUMERIC, "en_US");
snprintf(templateZip, 255, "%s_%.1f%s.tar.bz", platform, params->GetTargetVersion()/10000.0f, params->GetCustomTemplate());
lua_pushstring(L, templateZip);
lua_setfield(L, -2, "template");
Expand Down

0 comments on commit 2c71565

Please sign in to comment.