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

Linux: Empty `URLComponents` does not generate valid URL

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Component/s: Foundation
    • Labels:

      Description

      This code:

          let baseUrl = URL(string: "https://www.pointfree.co")
          let urlComponents = URLComponents()
          let url = urlComponents.url(relativeTo: baseUrl)
      

      generates a valid `URL` on Darwin, but generates `nil` on Linux.

      I am using Xcode 9.2 beta 9C34b, Swift 4.0.3

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            mbrandonw Brandon Williams
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: