You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexei Zakharov (JIRA)" <ji...@apache.org> on 2008/02/12 11:22:07 UTC

[jira] Created: (HARMONY-5494) [drlvm] newline is added at the end of "user.timezone" property

[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.