apple / swift-foundation

The Foundation project
Apache License 2.0
2.29k stars 135 forks source link

Use Data+Reading for loading TZ files #633

Closed jmschonfeld closed 1 month ago

jmschonfeld commented 1 month ago

This code previously had platform-specific loading code for reading the TZ file, but now that we have Data reading APIs we can simply call Data(contentsOfFile:) instead which is a lot shorter and avoids a lot of platform if-defs

jmschonfeld commented 1 month ago

@swift-ci please test

jmschonfeld commented 1 month ago

@swift-ci please test Windows