From 726201aa39e55f8b448771d2c9f9b2a5c0d32a48 Mon Sep 17 00:00:00 2001 From: Arjan Mels Date: Sun, 8 Sep 2024 10:26:35 +0200 Subject: [PATCH] Fix locale names in encode_tzf for windows --- tool/encode_tzf.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/encode_tzf.dart b/tool/encode_tzf.dart index 5a1f13e..8444820 100644 --- a/tool/encode_tzf.dart +++ b/tool/encode_tzf.dart @@ -48,7 +48,7 @@ Future main(List arguments) async { final files = await Glob('**').list(root: zoneinfoPath).toList(); for (final f in files) { if (f is pkg_file.File) { - final name = p.relative(f.path, from: zoneinfoPath); + final name = p.relative(f.path, from: zoneinfoPath).replaceAll('\\', '/'); log.info('- $name'); db.add(tzfileLocationToNativeLocation( tzfile.Location.fromBytes(name, await f.readAsBytes())));