libsoup r1265 - in trunk: . libsoup



Author: danw
Date: Wed Apr  8 14:23:15 2009
New Revision: 1265
URL: http://svn.gnome.org/viewvc/libsoup?rev=1265&view=rev

Log:
	Fix ISO 8601 parsing to accept either "." or ","

	* libsoup/soup-date.c (parse_iso8601_date): accept either "." or
	"," as decimal separator, per the spec. qv glib bug 578369.


Modified:
   trunk/ChangeLog
   trunk/libsoup/soup-date.c

Modified: trunk/libsoup/soup-date.c
==============================================================================
--- trunk/libsoup/soup-date.c	(original)
+++ trunk/libsoup/soup-date.c	Wed Apr  8 14:23:15 2009
@@ -191,7 +191,7 @@
 	} else
 		return FALSE;
 
-	if (*date_string == '.')
+	if (*date_string == '.' || *date_string == ',')
 		strtoul (date_string + 1, (char **)&date_string, 10);
 
 	if (*date_string == 'Z') {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]