From c4afe2950ab97fb529da99b511036b8a974b1694 Mon Sep 17 00:00:00 2001
From: Benjamin Peterson <benjamin@python.org>
Date: Mon, 7 Jun 2010 21:37:09 +0000
Subject: locale grouping strings should end in '\0'

---
 Objects/stringlib/formatter.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Objects/stringlib/formatter.h b/Objects/stringlib/formatter.h
index a807b97..5b7b3dc 100644
--- a/Objects/stringlib/formatter.h
+++ b/Objects/stringlib/formatter.h
@@ -649,7 +649,7 @@ get_locale_info(int type, LocaleInfo *locale_info)
     case LT_DEFAULT_LOCALE:
         locale_info->decimal_point = ".";
         locale_info->thousands_sep = ",";
-        locale_info->grouping = "\3"; /* Group every 3 characters,
+        locale_info->grouping = "\3\0"; /* Group every 3 characters,
                                          trailing 0 means repeat
                                          infinitely. */
         break;
-- 
cgit v0.12

