You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ubuntu 18.04 using the toolchain swift-5.5-DEVELOPMENT-SNAPSHOT-2021-08-04-a-ubuntu18.04, which has:
Swift version 5.5-dev (LLVM 4afce2110750060, Swift 4ae44a5e0eac8a0)
Target: x86_64-unknown-linux-gnu
Additional Detail from JIRA
Votes
0
Component/s
Foundation
Labels
Bug
Assignee
None
Priority
Medium
md5: 413f2dd3d043273f63044f446290e2a6
Issue Description:
On Ubuntu 18.04 using the toolchain swift-5.5-DEVELOPMENT-SNAPSHOT-2021-08-04-a-ubuntu18.04, which has:
Swift version 5.5-dev (LLVM 4afce2110750060, Swift 4ae44a5e0eac8a0)
Target: x86_64-unknown-linux-gnu
I’m seeing this error when decoding a JSON string that’s been encoded with `fastestEncoding`:
Fatal error: 'try!' expression unexpectedly raised an error: Swift.DecodingError.dataCorrupted(Swift.DecodingError.Context(codingPath:[], debugDescription:"The given data was not valid JSON.", underlyingError:Optional(Foundation.JSONError.unexpectedCharacter(ascii:255, characterIndex:0))))
See the attached program, which crashed on Ubuntu 18.04 but not macOS. The program doesn’t crash on Ubuntu when hardcoding `.utf8` instead of `string.fastestEncoding`.
The text was updated successfully, but these errors were encountered:
Attachment: Download
Environment
Ubuntu 18.04 using the toolchain swift-5.5-DEVELOPMENT-SNAPSHOT-2021-08-04-a-ubuntu18.04, which has:
Swift version 5.5-dev (LLVM 4afce2110750060, Swift 4ae44a5e0eac8a0)
Target: x86_64-unknown-linux-gnu
Additional Detail from JIRA
md5: 413f2dd3d043273f63044f446290e2a6
Issue Description:
On Ubuntu 18.04 using the toolchain swift-5.5-DEVELOPMENT-SNAPSHOT-2021-08-04-a-ubuntu18.04, which has:
Swift version 5.5-dev (LLVM 4afce2110750060, Swift 4ae44a5e0eac8a0)
Target: x86_64-unknown-linux-gnu
I’m seeing this error when decoding a JSON string that’s been encoded with `fastestEncoding`:
See the attached program, which crashed on Ubuntu 18.04 but not macOS. The program doesn’t crash on Ubuntu when hardcoding `.utf8` instead of `string.fastestEncoding`.
The text was updated successfully, but these errors were encountered: