You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by kg...@apache.org on 2012/11/21 02:40:44 UTC

svn commit: r1411974 - /felix/trunk/httplite/core/src/main/java/org/apache/felix/httplite/servlet/HttpServletRequestImpl.java

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
+}