Skip to content

Commit c4afe29

Browse files
committed
locale grouping strings should end in '\0'
1 parent 3ca14e9 commit c4afe29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/stringlib/formatter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ get_locale_info(int type, LocaleInfo *locale_info)
649649
case LT_DEFAULT_LOCALE:
650650
locale_info->decimal_point = ".";
651651
locale_info->thousands_sep = ",";
652-
locale_info->grouping = "\3"; /* Group every 3 characters,
652+
locale_info->grouping = "\3\0"; /* Group every 3 characters,
653653
trailing 0 means repeat
654654
infinitely. */
655655
break;

0 commit comments

Comments
 (0)