Infinite result dump when creating a `ISO8601DateFormatter` in the REPL

When running

import Foundation
let formatter = ISO8601DateFormatter()

using

swift-driver version: 1.82.2 Apple Swift version 5.9 (swiftlang-5.9.0.114.6 clang-1500.0.27.1)
Target: x86_64-apple-macosx14.0

I get an infinite result dump loop, as shown here:

https://asciinema.org/a/596454

How can I work around it?

Looks macOS 14 related, can't reproduce this on macOS 13 (using the same swift version).

1 Like