harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From odea...@apache.org
Subject svn commit: r964734 - /harmony/enhanced/java/trunk/classlib/modules/luni/src/main/native/luni/shared/luniglob.c
Date Fri, 16 Jul 2010 10:26:25 GMT
Author: odeakin
Date: Fri Jul 16 10:26:25 2010
New Revision: 964734

URL: http://svn.apache.org/viewvc?rev=964734&view=rev
Log:
Apply patch for HARMONY-6589 ([classlib][luni] Cannot pick up proper user.language and user.country
properties)

Modified:
    harmony/enhanced/java/trunk/classlib/modules/luni/src/main/native/luni/shared/luniglob.c

Modified: harmony/enhanced/java/trunk/classlib/modules/luni/src/main/native/luni/shared/luniglob.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/classlib/modules/luni/src/main/native/luni/shared/luniglob.c?rev=964734&r1=964733&r2=964734&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/classlib/modules/luni/src/main/native/luni/shared/luniglob.c
(original)
+++ harmony/enhanced/java/trunk/classlib/modules/luni/src/main/native/luni/shared/luniglob.c
Fri Jul 16 10:26:25 2010
@@ -132,7 +132,7 @@ JNI_OnLoad (JavaVM * vm, void *reserved)
        (*vmInterface)->GetSystemProperty (vmInterface, "user.language", &propVal);
        if (propVal == NULL) {
             /* FIXME provide appropriate non-dummy value */
-           propRes = (*vmInterface)->SetSystemProperty (vmInterface, "user.language",
"en");
+           propRes = (*vmInterface)->SetSystemProperty (vmInterface, "user.language",
(char *)hynls_get_language());
            if (VMI_ERROR_NONE != propRes) {
                /* goto fail2; */
            }
@@ -140,7 +140,7 @@ JNI_OnLoad (JavaVM * vm, void *reserved)
        (*vmInterface)->GetSystemProperty (vmInterface, "user.country", &propVal);
        if (propVal == NULL) {
            /* FIXME provide appropriate non-dummy value */
-           propRes = (*vmInterface)->SetSystemProperty (vmInterface, "user.country", "US");
+           propRes = (*vmInterface)->SetSystemProperty (vmInterface, "user.country", (char
*)hynls_get_region());
            if (VMI_ERROR_NONE != propRes) {
                /* goto fail2; */
            }



Mime
View raw message