This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Change to posix.cc to set gnu.java.util.zoneinfo.dir


Albert Chin wrote:
The following checkin was made on 2007-02-22:
  r122229 | jakub | 2007-02-22 10:04:55 -0600 (Thu, 22 Feb 2007) | 48 lines
  libjava/
          ...
          * posix.cc (_Jv_platform_initProperties): Set
          gnu.java.util.zoneinfo.dir.

Index: posix.cc
===================================================================
--- posix.cc (revision 116941)
+++ posix.cc (revision 122229)
@@ -139,6 +139,10 @@
if (! tmpdir)
tmpdir = "/tmp";
SET ("java.io.tmpdir", tmpdir);
+ const char *zoneinfodir = ::getenv("TZDATA");
+ if (! zoneinfodir)
+ zoneinfodir = "/usr/share/zoneinfo";
+ SET ("gnu.java.util.zoneinfo.dir", zoneinfodir);
}
static inline void


What if the directory isn't /usr/share/zoneinfo? On AIX and Solaris,
it's /usr/share/lib/zoneinfo. Shouldn't the default be correct for the
system GCJ is targeted for?

When the topic is already on the table. What about mingw? There's no zoneinfo stuff... Does that lead to runtime errors with the new code?



Marco



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]