aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/util/natTimeZone.cc
AgeCommit message (Collapse)AuthorFilesLines
2004-09-25[multiple changes]Mark Wielaard1-145/+0
2004-09-25 Mark Wielaard <mark@klomp.org> * Makefile.am (core_java_source_files): Add VMTimeZone.java. (nat_source_files): Rename natTimeZone.cc to natVMTimeZone.cc. * Makefile.in: Regenerated. * gcj/javaprims.h: Regenerated. * java/util/TimeZone.java (defaultZone): Use VMTimeZone. (getDefaultTimeZone): Make package private. Check that GMToffset contains at least one digit. (getDefaultTimeZoneId, readTimeZoneFile, readtzFile): (Re)Moved to VMTimeZone. * util/VMTimeZone.java: New file with above methods. * java/util/natTimeZone.cc: Removed (renamed). * java/util/natVMTimeZone.cc: Added (renamed). 2004-09-25 Jeroen Frijters <jeroen@frijters.net> * java/util/TimeZone.java (getDefaultTimeZone): Fixed test to distinguish between hours and minutes in specified timezone. From-SVN: r88112
2004-08-26re PR libgcj/17002 (java.util.TimeZone.getDefault() is broken)Mark Wielaard1-109/+84
2004-08-26 Mark Wielaard <mark@klomp.org> Fixes PR libgcj/17002: * java/util/TimeZone.java (defaultZone): Try a couple of ways to get a TimeZoneId string and then try to convert that to a TimeZone with getDefaultSystemTimeZone(String). (timezones0): Changed type from Hashtable to HashMap. (timezones): Create HashMap, not Hashtable. (getDefaultTimeZone): New method, rewritten from CNI version. (readTimeZoneFile): New method. (readtzFile): Likewise. (skipFully): Likewise. * java/util/natTimeZone.cc (getSystemTimeZone): Renamed to getDefaultTimeZoneId and rewritten. (getDefaultTimeZoneId): Rewritten in java. From-SVN: r86623
2003-02-19natStackTrace.cc: Include platform.h immediately after config.h.Rainer Orth1-3/+2
* gnu/gcj/runtime/natStackTrace.cc: Include platform.h immediately after config.h. Use <> for consistency. * java/lang/natObject.cc: Likewise. * java/lang/natRuntime.cc: Likewise. * java/lang/natSystem.cc: Likewise. * java/util/natTimeZone.cc: Likewise. * win32.cc: Likewise. * include/posix.h (fcntl, socket, connect, close, bind, accept, listen, write, read): Undef to avoid interference from OS macros. From-SVN: r63122
2002-06-04* java/util/natTimeZone.cc: Include <stdio.h>.Tom Tromey1-0/+2
From-SVN: r54258
2002-05-14natRuntime.cc: Don't include sys/time.h and time.h.Tom Tromey1-0/+15
* java/lang/natRuntime.cc: Don't include sys/time.h and time.h. * java/util/natTimeZone.cc: Include sys/time.h and time.h here. Include platform.h. From-SVN: r53443
2002-05-13re PR libgcj/6389 (System.getProperty("") should always throw an ↵Tom Tromey1-0/+154
IllegalArgumentException) Fixes PR libgcj/6389: * Makefile.in: Rebuilt. * Makefile.am (nat_source_files): Added natTimeZone.cc. * java/util/natTimeZone.cc: New file. * java/util/TimeZone.java (getDefaultTimeZoneId): New method. * java/lang/System.java: Merged with Classpath. * java/lang/Runtime.java: Merged with Classpath. * java/lang/natSystem.cc (setErr0): Renamed from setErr; don't run security check. (setIn0): Renamed from setIn; don't run security check. (setOut0): Renamed from setOut; don't run security check. (file_encoding, getpwuid_adaptor, getSystemTimeZone, init_properties): Moved to natRuntime.cc. Moved many includes to natRuntime.cc. (isWordsBigEndian): New method. * java/lang/natRuntime.cc: Include Long.h, also other includes previously in natSystem.cc. (maxMemory): New function. (exitInternal): Renamed from `_exit'. (exit): Removed. (init): Don't set finalize_on_exit. (exitInternal): Use `finalizeOnExit'. (file_encoding, getpwuid_adaptor): New functions from natSystem.cc. (insertSystemProperties): New method, renamed from System::init_properties. Don't set user.timezone. (_load): Don't call checkLink. (execInternal): New method. (availableProcessors): Likewise. (nativeGetLibname): Likewise. From-SVN: r53429
2001-01-09re PR libgcj/1411 (natTimeZone.cc should be removed)Warren Levy1-72/+0
Fix for PR libgcj/1411: * Makefile.am: Removed java/util/natTimeZone.cc. * Makefile.in: Rebuilt. * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added missing localized timezone names. * java/lang/System.java (getDefaultTimeZoneId): New private method. * java/lang/natSystem.cc (getSystemTimeZone): New private method. (init_properties): Set user.timezone property. * java/text/DateFormatSymbols.java (zoneStringsDefault): Added default timezone names; removed non-standard ones. Use standard ID names per JCL. * java/util/Date.java (toGMTString): Removed zoneGMT variable. (UTC): Ditto. * java/util/TimeZone.java: Add standard ID names per JCL; removed non-standard ones. (getDefaultTimeZoneId): Removed. (zoneGMT): Removed. (getDefaultTimeZoneId): Removed. * java/util/natTimeZone.cc: Removed. From-SVN: r38816
2000-11-28Makefile.am: Added natTimeZone.cc.Warren Levy1-0/+72
* Makefile.am: Added natTimeZone.cc. * Makefile.in: Rebuilt. * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries. * java/text/DateFormatSymbols.java (ampms): Made package private. (eras): Made package private. (months): Made package private. (shortMonths): Made package private. (shortWeekdays): Made package private. (weekdays): Made package private. (formatPrefixes): New private field. (localPatternCharsDefault): Made private. (dateFormats): New package private field. (timeFormats): New package private field. (formatsForKey): New private method. (DateFormatSymbols(Locale)): Set dateFormats and timeFormats. (DateFormatSymbols(DateFormatSymbols)): Ditto. * java/text/SimpleDateFormat.java: Merged with Classpath. * java/util/TimeZone.java: Merged with Classpath. * java/util/natTimeZone.cc: New file. From-SVN: r37808