felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kgil...@apache.org
Subject svn commit: r1411974 - /felix/trunk/httplite/core/src/main/java/org/apache/felix/httplite/servlet/HttpServletRequestImpl.java
Date Wed, 21 Nov 2012 01:40:44 GMT
Author: kgilmer
Date: Wed Nov 21 01:40:43 2012
New Revision: 1411974

URL: http://svn.apache.org/viewvc?rev=1411974&view=rev
Log:
httplite: applied Ed Schaller's patch for Locale issue in Android.  See FELIX-3547.

Modified:
    felix/trunk/httplite/core/src/main/java/org/apache/felix/httplite/servlet/HttpServletRequestImpl.java

Modified: felix/trunk/httplite/core/src/main/java/org/apache/felix/httplite/servlet/HttpServletRequestImpl.java
URL: http://svn.apache.org/viewvc/felix/trunk/httplite/core/src/main/java/org/apache/felix/httplite/servlet/HttpServletRequestImpl.java?rev=1411974&r1=1411973&r2=1411974&view=diff
==============================================================================
--- felix/trunk/httplite/core/src/main/java/org/apache/felix/httplite/servlet/HttpServletRequestImpl.java
(original)
+++ felix/trunk/httplite/core/src/main/java/org/apache/felix/httplite/servlet/HttpServletRequestImpl.java
Wed Nov 21 01:40:43 2012
@@ -83,7 +83,7 @@ public class HttpServletRequestImpl impl
     private final Socket m_socket;
     private Cookie[] m_cookies;
     //TODO: Make locale static and perhaps global to the service.
-    private final Locale m_locale = new Locale( System.getProperty( "user.language" ), System.getProperty(
"user.country" ) );
+    private final Locale m_locale = Locale.getDefault();
     private Map m_attributes;
     private final ServiceRegistrationResolver m_resolver;
     private String m_servletPath;
@@ -1168,4 +1168,4 @@ public class HttpServletRequestImpl impl
         }
         return str_array;
     }
-}
\ No newline at end of file
+}



Mime
View raw message