Uploaded image for project: 'Swift'
  1. Swift
  2. SR-3828

Segmentation Fault on Linux for Calendar(identifier: .iso8601)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Component/s: Foundation
    • Labels:
    • Environment:

      Description

      Same code works great on Mac, but cause the compiled binary to Seg Fault on Linux.

      import Foundation
      
      let formatter = DateFormatter()
      formatter.calendar = Calendar(identifier: .iso8601)
      let iso8601 = formatter.string(from: Date())
      print(iso8601)
      

      Full instructions at https://github.com/maximveksler/thank-you/tree/master/swift/DateFormatter

        Attachments

          Activity

            People

            Assignee:
            saiHema sai Hema k
            Reporter:
            self Maxim Veksler
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: