[Python-checkins] r81813 - python/trunk/Objects/stringlib/formatter.h

benjamin.peterson python-checkins at python.org
Mon Jun 7 23:37:09 CEST 2010


Author: benjamin.peterson
Date: Mon Jun  7 23:37:09 2010
New Revision: 81813

Log:
locale grouping strings should end in '\0'


Modified:
   python/trunk/Objects/stringlib/formatter.h

Modified: python/trunk/Objects/stringlib/formatter.h
==============================================================================
--- python/trunk/Objects/stringlib/formatter.h	(original)
+++ python/trunk/Objects/stringlib/formatter.h	Mon Jun  7 23:37:09 2010
@@ -649,7 +649,7 @@
     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;


More information about the Python-checkins mailing list