Skip to content

Commit

Permalink
set C locale
Browse files Browse the repository at this point in the history
  • Loading branch information
brlcad committed Jan 18, 2025
1 parent dc94911 commit d5884a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bench/benchmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
#ifdef HAVE_SYS_UTSNAME_H
# include <sys/utsname.h>
#endif
#include <locale.h>

#include "bio.h"

Expand Down Expand Up @@ -286,6 +287,9 @@ main(int ac, char *av[])

bu_setprogname(av[0]);

// Force locale setting to C
setlocale(LC_ALL, "C");

/* process the argument list for commands */
for (arg=1; arg<ac; arg++) {
if (BU_STR_EQUAL(av[arg], "clean")) {
Expand Down

0 comments on commit d5884a7

Please sign in to comment.