### Eclipse Workspace Patch 1.0 #P geo Index: includes/geo.wkb.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/geo/includes/geo.wkb.inc,v retrieving revision 1.11 diff -u -r1.11 geo.wkb.inc --- includes/geo.wkb.inc 5 Aug 2009 02:57:39 -0000 1.11 +++ includes/geo.wkb.inc 16 Nov 2009 07:45:57 -0000 @@ -51,7 +51,12 @@ if ($byte_order != $local_byte_order) { $tmp = strrev(substr($tmp, 0, 8)) . strrev(substr($tmp, 8)); } - $data = array_merge($data, unpack('dx/dy', $tmp)); + // Fetch the point and ensure there are no locale-specific commas. + $point = unpack('dx/dy', $tmp); + $point['x'] = str_replace(',', '.', $point['x']); + $point['y'] = str_replace(',', '.', $point['y']); + + $data = array_merge($data, $point); $data['value'] = $func($data); if (function_exists($post = $func .'_post')) $data = $post($data); return $data;