Skip to content

Commit

Permalink
Fix locale names in encode_tzf for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Arjan Mels committed Sep 8, 2024
1 parent deea783 commit 726201a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tool/encode_tzf.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Future<void> main(List<String> 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())));
Expand Down

0 comments on commit 726201a

Please sign in to comment.