Timezone data update to 2018f

The IANA timezone data 2018f was announced on Oct 18.

https://mm.icann.org/pipermail/tz-announce/2018-October/000051.html

Europe/Volgograd will move from UTC+3 to UTC+4 on Oct 28 and Fiji
will end DST on 2019-01-13 instead of 2019-01-20.

d8> new Date(Date.UTC(2018,9,27,12)).toLocaleString("en", {timeZone: "Europe/Volgograd"})
"10/27/2018, 3:00:00 PM"
d8> new Date(Date.UTC(2018,9,28,12)).toLocaleString("en", {timeZone: "Europe/Volgograd"})
"10/28/2018, 4:00:00 PM"

d8> new Date(Date.UTC(2019,0,12,0)).toLocaleString("en", {timeZone: "Pacific/Fiji"})
"1/12/2019, 1:00:00 PM"
d8> new Date(Date.UTC(2019,0,13,0)).toLocaleString("en", {timeZone: "Pacific/Fiji"})
"1/13/2019, 12:00:00 PM"

This CL will be followed by a fix for a memory alignment bug on ARM.

TBR=ftang@chromium.org
Bug: 473288
Test: See the above
Change-Id: Ic7b99bb7442c137a4e3f0a0db9debc9641f51948
Reviewed-on: https://chromium-review.googlesource.com/c/1293149
Reviewed-by: Jungshik Shin <jshin@chromium.org>
diff --git a/README.chromium b/README.chromium
index de9906f..1e9f557 100644
--- a/README.chromium
+++ b/README.chromium
@@ -207,9 +207,8 @@
      windowsZones.txt
      zoneinfo64.txt
 
-  As of May 4, 2018, the latest version is 2018e and the above files
-  are available at
-  http://source.icu-project.org/repos/icu/data/trunk/tzdata/icunew/2018e/44/
+  As of Oct 18, 2018, the latest version is 2018f and the above files
+  are available at the ICU github repos.
 
 4. Build-related changes
 
diff --git a/android/icudtl.dat b/android/icudtl.dat
index ec23562..02bb0aa 100644
--- a/android/icudtl.dat
+++ b/android/icudtl.dat
Binary files differ
diff --git a/cast/icudtl.dat b/cast/icudtl.dat
index 2240788..afd0863 100644
--- a/cast/icudtl.dat
+++ b/cast/icudtl.dat
Binary files differ
diff --git a/common/icudtb.dat b/common/icudtb.dat
index e94ea72..a302a4a 100644
--- a/common/icudtb.dat
+++ b/common/icudtb.dat
Binary files differ
diff --git a/common/icudtl.dat b/common/icudtl.dat
index 4a9d942..6e2df73 100644
--- a/common/icudtl.dat
+++ b/common/icudtl.dat
Binary files differ
diff --git a/ios/icudtl.dat b/ios/icudtl.dat
index 2ad3994..41fcb9e 100644
--- a/ios/icudtl.dat
+++ b/ios/icudtl.dat
Binary files differ
diff --git a/scripts/update_tz.sh b/scripts/update_tz.sh
index 51badda..adf30b5 100755
--- a/scripts/update_tz.sh
+++ b/scripts/update_tz.sh
@@ -3,34 +3,20 @@
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
 
-# Download the 4 files below from the ICU data repository ($baseurl below) and
-# put them in source/data/misc to update the IANA timezone database in ICU.
+# Download the 4 files below from the ICU trunk and put them in
+# source/data/misc to update the IANA timezone database.
 #
 #   metaZones.txt timezoneTypes.txt windowsZones.txt zoneinfo64.txt
 #
 # For IANA Time zone database, see https://www.iana.org/time-zones
 
-if [ $# -lt 1 ];
-then
-  echo "Usage: "$0" version (e.g. '2015b')" >&2
-  exit 1
-fi
-
 version=$1
-baseurl="http://source.icu-project.org/repos/icu/data/trunk/tzdata/icunew/"
-outputdir="$(dirname "$0")/../source/data/misc"
-
-# The latest ICU version for which the timezone data format changed in
-# an incompatible manner.
-# For a given IANA tz db version (e.g. 2015b),
-#  http://source.icu-project.org/repos/icu/data/trunk/tzdata/icunew/${version}
-# has subdirectories for different ICU data versions. As of April 2015, 44
-# is the latest even though the latest ICU release is 55.
-icudataversion=44
-
-sourcedirurl="${baseurl}/${version}/${icudataversion}"
+datapath="source/data/misc"
+sourcedirurl="https://github.com/unicode-org/icu/trunk/icu4c/${datapath}"
+cd "$(dirname "$0")/../${datapath}"
 
 for f in metaZones.txt timezoneTypes.txt windowsZones.txt zoneinfo64.txt
 do
-  wget -O "${outputdir}/${f}" "${sourcedirurl}/${f}"
+  echo "${sourcedirurl}/${f}"
+  svn --force export "${sourcedirurl}/${f}"
 done
diff --git a/source/data/misc/metaZones.txt b/source/data/misc/metaZones.txt
index c52fe49..d9bd8ab 100644
--- a/source/data/misc/metaZones.txt
+++ b/source/data/misc/metaZones.txt
@@ -3132,11 +3132,11 @@
             {
                 "Pyongyang",
                 "2015-08-14 15:00",
-                "2018-05-04 15:30",
+                "2018-05-04 15:00",
             }
             {
                 "Korea",
-                "2018-05-04 15:30",
+                "2018-05-04 15:00",
                 "9999-12-31 23:59",
             }
         }
@@ -3992,6 +3992,11 @@
             {
                 "Moscow",
                 "1992-03-28 22:00",
+                "2018-10-27 23:00",
+            }
+            {
+                "Volgograd",
+                "2018-10-27 23:00",
                 "9999-12-31 23:59",
             }
         }
diff --git a/source/data/misc/windowsZones.txt b/source/data/misc/windowsZones.txt
index 44944cb..67d20d4 100644
--- a/source/data/misc/windowsZones.txt
+++ b/source/data/misc/windowsZones.txt
@@ -580,6 +580,10 @@
             001{"Pacific/Apia"}
             WS{"Pacific/Apia"}
         }
+        "Sao Tome Standard Time"{
+            001{"Africa/Sao_Tome"}
+            ST{"Africa/Sao_Tome"}
+        }
         "Saratov Standard Time"{
             001{"Europe/Saratov"}
             RU{"Europe/Saratov"}
@@ -745,7 +749,6 @@
             GQ{"Africa/Malabo"}
             NE{"Africa/Niamey"}
             NG{"Africa/Lagos"}
-            ST{"Africa/Sao_Tome"}
             TD{"Africa/Ndjamena"}
             TN{"Africa/Tunis"}
             ZZ{"Etc/GMT-1"}
diff --git a/source/data/misc/zoneinfo64.txt b/source/data/misc/zoneinfo64.txt
index 519db6f..219f981 100644
--- a/source/data/misc/zoneinfo64.txt
+++ b/source/data/misc/zoneinfo64.txt
@@ -3,17 +3,17 @@
 // License & terms of use: http://www.unicode.org/copyright.html#License
 //---------------------------------------------------------
 // Build tool:  tz2icu
-// Build date:  Fri May  4 16:06:17 2018
+// Build date:  Fri Oct 19 16:05:03 2018
 // tz database: ftp://ftp.iana.org/tz/
-// tz version:  2018e
-// ICU version: 61.1
+// tz version:  2018f
+// ICU version: 63.1
 //---------------------------------------------------------
 // >> !!! >>   THIS IS A MACHINE-GENERATED FILE   << !!! <<
 // >> !!! >>>            DO NOT EDIT             <<< !!! <<
 //---------------------------------------------------------
 
 zoneinfo64:table(nofallback) {
- TZVersion { "2018e" }
+ TZVersion { "2018f" }
  Zones:array { 
   /* ACT */ :int { 354 } //Z#0
   /* AET */ :int { 366 } //Z#1
@@ -1030,12 +1030,12 @@
     typeMap:bin { "010201020102010201020102010201020102010201020102010201020103" }
   } //Z#199
   /* America/Santiago */ :table {
-    trans:intvector { -1892661434, -1688410800, -1619205434, -1593806400, -1335986234, -1317585600, -1304362800, -1286049600, -1272826800, -1254513600, -1241290800, -1222977600, -1209754800, -1191355200, -1178132400, -870552000, -865278000, -740520000, -736376400, -718056000, -713649600, -36619200, -23922000, -3355200, 7527600, 24465600, 37767600, 55915200, 69217200, 87969600, 100666800, 118209600, 132116400, 150868800, 163566000, 182318400, 195620400, 213768000, 227070000, 245217600, 258519600, 277272000, 289969200, 308721600, 321418800, 340171200, 353473200, 371620800, 384922800, 403070400, 416372400, 434520000, 447822000, 466574400, 479271600, 498024000, 510721200, 529473600, 545194800, 560923200, 574225200, 592372800, 605674800, 624427200, 637124400, 653457600, 668574000, 687326400, 700628400, 718776000, 732078000, 750225600, 763527600, 781675200, 794977200, 813729600, 826426800, 845179200, 859690800, 876628800, 889930800, 906868800, 923194800, 939528000, 952830000, 971582400, 984279600, 1003032000, 1015729200, 1034481600, 1047178800, 1065931200, 1079233200, 1097380800, 1110682800, 1128830400, 1142132400, 1160884800, 1173582000, 1192334400, 1206846000, 1223784000, 1237086000, 1255233600, 1270350000, 1286683200, 1304823600, 1313899200, 1335668400, 1346558400, 1367118000, 1378612800, 1398567600, 1410062400, 1463281200, 1471147200 }
+    trans:intvector { -1892661434, -1688410800, -1619205434, -1593806400, -1335986234, -1317585600, -1304362800, -1286049600, -1272826800, -1254513600, -1241290800, -1222977600, -1209754800, -1191355200, -1178132400, -870552000, -865278000, -740520000, -736376400, -718056000, -713649600, -36619200, -23922000, -3355200, 7527600, 24465600, 37767600, 55915200, 69217200, 87969600, 100666800, 118209600, 132116400, 150868800, 163566000, 182318400, 195620400, 213768000, 227070000, 245217600, 258519600, 277272000, 289969200, 308721600, 321418800, 340171200, 353473200, 371620800, 384922800, 403070400, 416372400, 434520000, 447822000, 466574400, 479271600, 498024000, 510721200, 529473600, 545194800, 560923200, 574225200, 592372800, 605674800, 624427200, 637124400, 653457600, 668574000, 687326400, 700628400, 718776000, 732078000, 750225600, 763527600, 781675200, 794977200, 813729600, 826426800, 845179200, 859690800, 876628800, 889930800, 906868800, 923194800, 939528000, 952830000, 971582400, 984279600, 1003032000, 1015729200, 1034481600, 1047178800, 1065931200, 1079233200, 1097380800, 1110682800, 1128830400, 1142132400, 1160884800, 1173582000, 1192334400, 1206846000, 1223784000, 1237086000, 1255233600, 1270350000, 1286683200, 1304823600, 1313899200, 1335668400, 1346558400, 1367118000, 1378612800, 1398567600, 1410062400, 1463281200, 1471147200, 1494730800, 1502596800, 1526180400, 1534046400, 1554606000, 1567915200 }
     typeOffsets:intvector { -16966, 0, -18000, 0, -18000, 3600, -14400, 0, -14400, 3600 }
-    typeMap:bin { "0100030002010201020102010201030103040301030403040304030403040304030403040304030403040304030403040304030403040304030403040304030403040304030403040304030403040304030403040304030403040304030403040304030403040304030403040304030403040304" }
+    typeMap:bin { "0100030002010201020102010201030103040301030403040304030403040304030403040304030403040304030403040304030403040304030403040304030403040304030403040304030403040304030403040304030403040304030403040304030403040304030403040304030403040304030403040304" }
     finalRule { "Chile" }
     finalRaw:int { -14400 }
-    finalYear:int { 2017 }
+    finalYear:int { 2020 }
     links:intvector { 200, 392 }
   } //Z#200
   /* America/Santo_Domingo */ :table {
@@ -1498,9 +1498,9 @@
   /* Asia/Kuwait */ :int { 308 } //Z#290
   /* Asia/Macao */ :int { 292 } //Z#291
   /* Asia/Macau */ :table {
-    trans:intvector { -1830412800, -277360200, -257405400, -245910600, -225955800, -214473600, -194506200, -182406600, -163056600, -150969600, -131619600, -117088200, -101367000, -85638600, -69312600, -53584200, -37863000, -22134600, -6413400, 9315000, 25036200, 40764600, 56485800, 72201600, 87922800, 103651200, 119977200, 135705600, 151439400, 167167800, 182889000, 198617400, 214338600, 230067000, 245788200, 261504000, 277225200, 292953600, 309279600, 325008000, 340729200 }
-    typeOffsets:intvector { 27260, 0, 28800, 0, 28800, 3600 }
-    typeMap:bin { "0102010201020102010201020102010201020102010201020102010201020102010201020102010201" }
+    trans:intvector { -2056692850, -884509200, -873280800, -855918000, -841744800, -828529200, -765363600, -747046800, -733827600, -716461200, -697021200, -683715600, -667990800, -654771600, -636627600, -623322000, -605178000, -591872400, -573642000, -559818000, -541674000, -528368400, -510224400, -498128400, -478774800, -466678800, -446720400, -435229200, -415258200, -403158600, -383808600, -371709000, -352359000, -340259400, -320909400, -308809800, -288855000, -277360200, -257405400, -245910600, -225955800, -213856200, -194506200, -182406600, -163056600, -148537800, -132820200, -117088200, -101370600, -85638600, -69312600, -53584200, -37863000, -22134600, -6413400, 9315000, 25036200, 40764600, 56485800, 72214200, 88540200, 104268600, 119989800, 126041400, 151439400, 167167800, 182889000, 198617400, 214338600, 295385400, 309292200 }
+    typeOffsets:intvector { 27250, 0, 28800, 0, 28800, 3600, 32400, 0, 32400, 3600 }
+    typeMap:bin { "0103040304030102010201020102010201020102010201020102010201020102010201020102010201020102010201020102010201020102010201020102010201020102010201" }
     links:intvector { 291, 292 }
   } //Z#292
   /* Asia/Magadan */ :table {
@@ -1557,7 +1557,7 @@
     typeMap:bin { "02040203020301" }
   } //Z#303
   /* Asia/Pyongyang */ :table {
-    trans:intvector { -1948782180, -1830414600, 1439564400, 1525447800 }
+    trans:intvector { -1948782180, -1830414600, 1439564400, 1525446000 }
     typeOffsets:intvector { 30180, 0, 30600, 0, 32400, 0 }
     typeMap:bin { "01020102" }
   } //Z#304
@@ -1598,9 +1598,9 @@
   } //Z#312
   /* Asia/Shanghai */ :table {
     transPre32:intvector { -1, 2117485353 }
-    trans:intvector { -933494400, -923130000, -908784000, -891594000, 515520000, 527007600, 545155200, 558457200, 576604800, 589906800, 608659200, 621961200, 640108800, 653410800, 671558400, 684860400 }
+    trans:intvector { -933667200, -922093200, -908870400, -888829200, -881049600, -767869200, -745833600, -733827600, -716889600, -699613200, -683884800, -670669200, -652348800, -650019600, 515527200, 527014800, 545162400, 558464400, 577216800, 589914000, 608666400, 621968400, 640116000, 653418000, 671565600, 684867600 }
     typeOffsets:intvector { 29143, 0, 28800, 0, 28800, 3600 }
-    typeMap:bin { "0102010201020102010201020102010201" }
+    typeMap:bin { "010201020102010201020102010201020102010201020102010201" }
     links:intvector { 258, 259, 269, 313, 382, 546 }
   } //Z#313
   /* Asia/Singapore */ :table {
@@ -1650,7 +1650,7 @@
   } //Z#322
   /* Asia/Tokyo */ :table {
     transPre32:intvector { -1, 1707254896 }
-    trans:intvector { -683802000, -672314400, -654771600, -640864800, -620298000, -609415200, -588848400, -577965600 }
+    trans:intvector { -683802000, -672310800, -654771600, -640861200, -620298000, -609411600, -588848400, -577962000 }
     typeOffsets:intvector { 33539, 0, 32400, 0, 32400, 3600 }
     typeMap:bin { "010201020102010201" }
     links:intvector { 323, 527, 529 }
@@ -2406,9 +2406,9 @@
     finalYear:int { 2004 }
   } //Z#495
   /* Europe/Volgograd */ :table {
-    trans:intvector { -1577761060, -1247540400, 354916800, 370724400, 386452800, 402260400, 417988800, 433796400, 449611200, 465343200, 481068000, 496792800, 512517600, 528242400, 543967200, 559692000, 575416800, 591145200, 606870000, 622594800, 638319600, 654649200, 670374000, 701820000, 717548400, 733273200, 748998000, 764722800, 780447600, 796172400, 811897200, 828226800, 846370800, 859676400, 877820400, 891126000, 909270000, 922575600, 941324400, 954025200, 972774000, 985474800, 1004223600, 1017529200, 1035673200, 1048978800, 1067122800, 1080428400, 1099177200, 1111878000, 1130626800, 1143327600, 1162076400, 1174777200, 1193526000, 1206831600, 1224975600, 1238281200, 1256425200, 1269730800, 1288479600, 1301180400, 1414274400 }
+    trans:intvector { -1577761060, -1247540400, 354916800, 370724400, 386452800, 402260400, 417988800, 433796400, 449611200, 465343200, 481068000, 496792800, 512517600, 528242400, 543967200, 559692000, 575416800, 591145200, 606870000, 622594800, 638319600, 654649200, 670374000, 701820000, 717548400, 733273200, 748998000, 764722800, 780447600, 796172400, 811897200, 828226800, 846370800, 859676400, 877820400, 891126000, 909270000, 922575600, 941324400, 954025200, 972774000, 985474800, 1004223600, 1017529200, 1035673200, 1048978800, 1067122800, 1080428400, 1099177200, 1111878000, 1130626800, 1143327600, 1162076400, 1174777200, 1193526000, 1206831600, 1224975600, 1238281200, 1256425200, 1269730800, 1288479600, 1301180400, 1414274400, 1540681200 }
     typeOffsets:intvector { 10660, 0, 10800, 0, 10800, 3600, 14400, 0, 14400, 3600 }
-    typeMap:bin { "010304030403040304030403040304030201020102010302010201020102010201020102010201020102010201020102010201020102010201020102010301" }
+    typeMap:bin { "01030403040304030403040304030403020102010201030201020102010201020102010201020102010201020102010201020102010201020102010201030103" }
   } //Z#496
   /* Europe/Warsaw */ :table {
     trans:intvector { -1717032240, -1693706400, -1680483600, -1663455600, -1650150000, -1632006000, -1618700400, -1600473600, -1587168000, -1501725600, -931734000, -857257200, -844556400, -828226800, -812502000, -796608000, -778726800, -762660000, -748486800, -733273200, -715215600, -701910000, -684975600, -670460400, -654130800, -639010800, -397094400, -386812800, -371088000, -355363200, -334195200, -323308800, -307584000, -291859200, -271296000, -260409600, -239846400, -228960000, -208396800, -197510400, -176342400, -166060800, 228873600, 243993600, 260323200, 276048000, 291772800, 307497600, 323827200, 338947200, 354672000, 370396800, 386121600, 401846400, 417571200, 433296000, 449020800, 465350400, 481075200, 496800000, 512524800, 528249600, 543974400, 559699200, 575427600, 591152400, 606877200, 622602000, 638326800, 654656400, 670381200, 686106000, 701830800, 717555600, 733280400, 749005200, 764730000, 780454800, 796179600, 811904400, 828234000, 846378000 }
@@ -2590,12 +2590,12 @@
     links:intvector { 554, 589, 592 }
   } //Z#554
   /* Pacific/Easter */ :table {
-    trans:intvector { -1178124152, -36619200, -23922000, -3355200, 7527600, 24465600, 37767600, 55915200, 69217200, 87969600, 100666800, 118209600, 132116400, 150868800, 163566000, 182318400, 195620400, 213768000, 227070000, 245217600, 258519600, 277272000, 289969200, 308721600, 321418800, 340171200, 353473200, 371620800, 384922800, 403070400, 416372400, 434520000, 447822000, 466574400, 479271600, 498024000, 510721200, 529473600, 545194800, 560923200, 574225200, 592372800, 605674800, 624427200, 637124400, 653457600, 668574000, 687326400, 700628400, 718776000, 732078000, 750225600, 763527600, 781675200, 794977200, 813729600, 826426800, 845179200, 859690800, 876628800, 889930800, 906868800, 923194800, 939528000, 952830000, 971582400, 984279600, 1003032000, 1015729200, 1034481600, 1047178800, 1065931200, 1079233200, 1097380800, 1110682800, 1128830400, 1142132400, 1160884800, 1173582000, 1192334400, 1206846000, 1223784000, 1237086000, 1255233600, 1270350000, 1286683200, 1304823600, 1313899200, 1335668400, 1346558400, 1367118000, 1378612800, 1398567600, 1410062400, 1463281200, 1471147200 }
+    trans:intvector { -1178124152, -36619200, -23922000, -3355200, 7527600, 24465600, 37767600, 55915200, 69217200, 87969600, 100666800, 118209600, 132116400, 150868800, 163566000, 182318400, 195620400, 213768000, 227070000, 245217600, 258519600, 277272000, 289969200, 308721600, 321418800, 340171200, 353473200, 371620800, 384922800, 403070400, 416372400, 434520000, 447822000, 466574400, 479271600, 498024000, 510721200, 529473600, 545194800, 560923200, 574225200, 592372800, 605674800, 624427200, 637124400, 653457600, 668574000, 687326400, 700628400, 718776000, 732078000, 750225600, 763527600, 781675200, 794977200, 813729600, 826426800, 845179200, 859690800, 876628800, 889930800, 906868800, 923194800, 939528000, 952830000, 971582400, 984279600, 1003032000, 1015729200, 1034481600, 1047178800, 1065931200, 1079233200, 1097380800, 1110682800, 1128830400, 1142132400, 1160884800, 1173582000, 1192334400, 1206846000, 1223784000, 1237086000, 1255233600, 1270350000, 1286683200, 1304823600, 1313899200, 1335668400, 1346558400, 1367118000, 1378612800, 1398567600, 1410062400, 1463281200, 1471147200, 1494730800, 1502596800, 1526180400, 1534046400, 1554606000, 1567915200 }
     typeOffsets:intvector { -26248, 0, -25200, 0, -25200, 3600, -21600, 0, -21600, 3600 }
-    typeMap:bin { "010201020102010201020102010201020102010201020102010201020304030403040304030403040304030403040304030403040304030403040304030403040304030403040304030403040304030403040304030403040304030403040304" }
+    typeMap:bin { "010201020102010201020102010201020102010201020102010201020304030403040304030403040304030403040304030403040304030403040304030403040304030403040304030403040304030403040304030403040304030403040304030403040304" }
     finalRule { "Chile" }
     finalRaw:int { -21600 }
-    finalYear:int { 2017 }
+    finalYear:int { 2020 }
     links:intvector { 393, 555 }
   } //Z#555
   /* Pacific/Efate */ :table {
@@ -3100,7 +3100,7 @@
     8, -30, -1, 9900, 1, 3, 1, -1, 9900, 1, 3600
   } //_#7
   Chile:intvector {
-    7, 9, -1, 14400, 2, 4, 9, -1, 10800, 2, 3600
+    8, 2, -1, 14400, 2, 3, 2, -1, 10800, 2, 3600
   } //_#8
   Cuba:intvector {
     2, 8, -1, 0, 1, 10, 1, -1, 0, 1, 3600
@@ -3115,7 +3115,7 @@
     9, -31, -1, 3600, 2, 2, -31, -1, 3600, 2, -3600
   } //_#12
   Fiji:intvector {
-    10, 1, -1, 7200, 0, 0, 14, -1, 10800, 0, 3600
+    10, 1, -1, 7200, 0, 0, 13, -1, 10800, 0, 3600
   } //_#13
   Haiti:intvector {
     2, 8, -1, 7200, 0, 10, 1, -1, 7200, 0, 3600