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

Marco Trudel mtrudel@gmx.ch
Wed Mar 7 20:40:00 GMT 2007


Albert Chin wrote:
> The following checkin was made on 2007年02月22日:
> r122229 | jakub | 2007年02月22日 10:04:55 -0600 (2007年2月22日) | 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


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /