[Geoserver-devel] [jira] Created: (GEOS-3896) CSSDemo page fails to load in locales that use comma as the decimal separator

CSSDemo page fails to load in locales that use comma as the decimal separator
-----------------------------------------------------------------------------

                 Key: GEOS-3896
                 URL: http://jira.codehaus.org/browse/GEOS-3896
             Project: GeoServer
          Issue Type: Bug
            Reporter: Andrea Aime
            Assignee: David Winslow
             Fix For: 2.0.2

Under my italian locale setup the generated page contains:

{code}
<script type="text/javascript" ><!--/*--><![CDATA[/*><!--*/
Wicket.Event.add(window, "load", function() {
      OpenLayers.DOTS_PER_INCH= 25.4 / 0.28;

      var cfg = {
        maxExtent: new OpenLayers.Bounds(-74,011832, 40,707547, -74,008573, 40,711946),
        maxResolution: 0,000017,
        controls: [
          new OpenLayers.Control.PanZoomBar(),
          new OpenLayers.Control.Navigation()
        ]
      }

      var map = new OpenLayers.Map("id4d", cfg);
      map.addLayer(new OpenLayers.Layer.WMS("GeoServer WMS", "../wms",
          {
            layers: "tiger:poi",
            styles: "burg",
            format: "image/png",
            random: 738651006
          }
        )
      );

      map.zoomToMaxExtent();
      window.olMaps = window.olMaps || {};
      window.olMaps["id4d"] = map;
    ;});
/*-->]]>*/</script>
{code}

Workaround "export LANG=C" before starting up GeoServer. I guess the nice and compact syntax to expand the bounds and other numbers requires a way to force a USA locale to work in this specific case:

maxExtent: new OpenLayers.Bounds(%1$f, %2$f, %3$f, %4$f)

Oh, btw, var cfg = { ... } misses a semicolumn to close the statement.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira