diff options
author | Steve Kondik <shade@chemlab.org> | 2012-11-18 17:42:35 -0800 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2012-11-18 17:42:35 -0800 |
commit | 968c473c5045d5f245edccfcefbe0bf98421aeae (patch) | |
tree | f547042b252db42f0863b1720759af7eb304f1b9 /libc | |
parent | c24859f3548a2599ef2b3cf304ccb02e101312d3 (diff) | |
download | bionic-968c473c5045d5f245edccfcefbe0bf98421aeae.zip bionic-968c473c5045d5f245edccfcefbe0bf98421aeae.tar.gz bionic-968c473c5045d5f245edccfcefbe0bf98421aeae.tar.bz2 |
Revert "timezone: data file should be 32 bit aligned"
This reverts commit bc0b877a507f394001bb133891032d65e04cd106.
Diffstat (limited to 'libc')
-rw-r--r-- | libc/tools/zoneinfo/ZoneCompactor.java | 7 | ||||
-rwxr-xr-x | libc/tools/zoneinfo/generate | 2 | ||||
-rw-r--r-- | libc/zoneinfo/zoneinfo.dat | bin | 485000 -> 484319 bytes | |||
-rw-r--r-- | libc/zoneinfo/zoneinfo.idx | bin | 29952 -> 29952 bytes |
4 files changed, 1 insertions, 8 deletions
diff --git a/libc/tools/zoneinfo/ZoneCompactor.java b/libc/tools/zoneinfo/ZoneCompactor.java index cc77c94..b657748 100644 --- a/libc/tools/zoneinfo/ZoneCompactor.java +++ b/libc/tools/zoneinfo/ZoneCompactor.java @@ -55,13 +55,11 @@ public class ZoneCompactor { InputStream in = new FileInputStream(inFile); byte[] buf = new byte[8192]; - int length = 0; while (true) { int nbytes = in.read(buf); if (nbytes == -1) { break; } - length += nbytes; out.write(buf, 0, nbytes); byte[] nret = new byte[ret.length + nbytes]; @@ -69,8 +67,6 @@ public class ZoneCompactor { System.arraycopy(buf, 0, nret, ret.length, nbytes); ret = nret; } - if (length%4 != 0) - out.write(new byte[] {00,00,00,00}, 0, 4 - length % 4); out.flush(); return ret; } @@ -109,9 +105,6 @@ public class ZoneCompactor { lengths.put(s, new Integer((int)length)); start += length; - if (start % 4 != 0) - start += 4 - start % 4; - byte[] data = copyFile(f, zoneInfo); TimeZone tz = ZoneInfo.make(s, data); diff --git a/libc/tools/zoneinfo/generate b/libc/tools/zoneinfo/generate index 6fdb775..3e21d0b 100755 --- a/libc/tools/zoneinfo/generate +++ b/libc/tools/zoneinfo/generate @@ -75,7 +75,7 @@ echo "Compacting $latest_version..." javac -d . \ $bionic_zoneinfo_tools_dir/ZoneCompactor.java \ $bionic_zoneinfo_tools_dir/ZoneInfo.java -java -classpath . ZoneCompactor setup data +java ZoneCompactor setup data echo "Updating bionic to $latest_version..." mv zoneinfo.dat zoneinfo.idx $bionic_zoneinfo_dir diff --git a/libc/zoneinfo/zoneinfo.dat b/libc/zoneinfo/zoneinfo.dat Binary files differindex 7dbc2dd..cc1cb38 100644 --- a/libc/zoneinfo/zoneinfo.dat +++ b/libc/zoneinfo/zoneinfo.dat diff --git a/libc/zoneinfo/zoneinfo.idx b/libc/zoneinfo/zoneinfo.idx Binary files differindex 856e085..0483c28 100644 --- a/libc/zoneinfo/zoneinfo.idx +++ b/libc/zoneinfo/zoneinfo.idx |