A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-checkins/2003-September/037701.html below:

[Python-checkins] python/dist/src/Modules _localemodule.c, 2.40.4.1, 2.40.4.2

[Python-checkins] python/dist/src/Modules _localemodule.c, 2.40.4.1, 2.40.4.2loewis at users.sourceforge.net loewis at users.sourceforge.net
Thu Sep 4 12:26:09 EDT 2003
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv31547/Modules

Modified Files:
      Tag: release23-maint
	_localemodule.c 
Log Message:
Patch #798145: Return correct information from nl_langinfo(RADIXCHAR).


Index: _localemodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_localemodule.c,v
retrieving revision 2.40.4.1
retrieving revision 2.40.4.2
diff -C2 -d -r2.40.4.1 -r2.40.4.2
*** _localemodule.c	3 Sep 2003 04:53:15 -0000	2.40.4.1
--- _localemodule.c	4 Sep 2003 18:26:07 -0000	2.40.4.2
***************
*** 580,583 ****
--- 580,595 ----
         returns numeric values in the char* return value, which would
         crash PyString_FromString.  */
+ #ifdef RADIXCHAR
+     if (saved_numeric) {
+ 	if(item == RADIXCHAR) {
+             Py_INCREF(decimal_point);
+             return decimal_point;
+         }
+         if(item == THOUSEP) {
+             Py_INCREF(thousands_sep);
+             return thousands_sep;
+         }
+     }
+ #endif
      for (i = 0; langinfo_constants[i].name; i++)
  	    if (langinfo_constants[i].value == item)



More information about the Python-checkins mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4