harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexei Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-5494) [drlvm] newline is added at the end of "user.timezone" property
Date Tue, 12 Feb 2008 10:22:07 GMT
[drlvm] newline is added at the end of "user.timezone" property
---------------------------------------------------------------

                 Key: HARMONY-5494
                 URL: https://issues.apache.org/jira/browse/HARMONY-5494
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
         Environment: Linux32
            Reporter: Alexei Zakharov


DRLVM adds extra '\n' character to the end of "user.timezone" system property value. The problem
is somewhere in port_user_timezone() function from "vm/port/src/misc/linux/timezone.c". This
problem was the reason of incorrect default timezone autodetection under Linux - see HARMONY-5476.
In spite of the fact that we currently have a workaround (for default timezone autodetection)
committed to the classlib workspace I believe the right thing to do here is to fix the root
issue in port_user_timezone() implementation.

Please see the test case to reproduce the issue below.

UserTimeZoneTest.java
---
import java.util.TimeZone;

public class UserTimeZoneTest {
    public static void main(String argv[]) {
        String val = System.getProperty("user.timezone");
        System.out.println("\"" + val + "\"");
    }
}
---

On DRLVM:
$DRLVM_HOME/bin/java UserTimeZoneTest
"Europe/Moscow
"

On J9:
$J9_HOME/bin/java  UserTimeZoneTest
"Europe/Moscow"



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message