Skip to content

Commit f40b58a

Browse files
committed
pif's method to force the locale and unfuck our commas (among other things).
1 parent 479dcee commit f40b58a

File tree

1 file changed

+5
-1
lines changed
  • SerialPrograms/Source/CommonFramework

1 file changed

+5
-1
lines changed

SerialPrograms/Source/CommonFramework/Main.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,18 @@ int run_program(int argc, char *argv[]){
154154

155155

156156
int main(int argc, char *argv[]){
157+
// DO NOT CHANGE THIS
158+
// We make assumptions about string formats for serialization.
159+
// If you change this, it can fuck up our parsing.
160+
std::locale::global(std::locale("en_US.UTF-8"));
161+
157162
#if 0
158163
// Retrieve and store program name
159164
set_program_path(argv[0]);
160165
#endif
161166

162167
setup_crash_handler();
163168

164-
165169
int ret = run_program(argc, argv);
166170

167171

0 commit comments

Comments
 (0)