Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-8111] Weird issue when printing String with unicode character #4493

Closed
swift-ci opened this issue Jun 26, 2018 · 5 comments
Closed

[SR-8111] Weird issue when printing String with unicode character #4493

swift-ci opened this issue Jun 26, 2018 · 5 comments
Assignees
Labels
bug Something isn't working LLDB for Swift

Comments

@swift-ci
Copy link

Previous ID SR-8111
Radar rdar://problem/41527107
Original Reporter Tainnor (JIRA User)
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s LLDB for Swift
Labels Bug
Assignee @poya
Priority Medium

md5: 0dea853c797c43984a14bd8d2da1227f

is duplicated by:

  • SR-12769 lldb expression command prints wrong result for characters in the range 0x80-0x9f
  • SR-13403 UTF-8 decoding truncates replacement character

Issue Description:

If I go into the REPL in Swift 4.1.2 (swiftlang-902.0.54 clang-902.0.39.2) and type in the string "\u{8d}" the REPL will instead echo

$R9: String = "\u{c2}"

back to me.

This doesn't seem to be a problem in the actual representation of the string: When I inspect the individual characters, the correct value is stored. Also, calling print with it works "fine" (it's not really a printable character, but at least it doesn't print "Â", which is what "\u{c2}" would resolve to).

(See also: https://forums.swift.org/t/weird-issue-when-printing-string-with-unicode-character/14001)

@moiseev
Copy link
Mannequin

moiseev mannequin commented Jun 26, 2018

/cc @milseman

@belkadan
Copy link

This is part of LLDB's printed representation, so cc jingham@apple.com (JIRA User)

@belkadan
Copy link

@swift-ci create

@swift-ci
Copy link
Author

swift-ci commented May 3, 2019

Comment by Pierpaolo Frasa (JIRA)

Still happening with version 5.0.1 (swiftlang-1001.0.82.4 clang-1001.0.46.4).

@poya
Copy link

poya commented Feb 18, 2020

Fixed with #771

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 7, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working LLDB for Swift
Projects
None yet
Development

No branches or pull requests

3 participants