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-12769] lldb expression command prints wrong result for characters in the range 0x80-0x9f #4468

Closed
swift-ci opened this issue May 10, 2020 · 1 comment
Labels
bug Something isn't working LLDB for Swift

Comments

@swift-ci
Copy link

Previous ID SR-12769
Radar None
Original Reporter nsc (JIRA User)
Type Bug
Status Resolved
Resolution Duplicate
Additional Detail from JIRA
Votes 0
Component/s LLDB for Swift
Labels Bug
Assignee None
Priority Medium

md5: 3cc9850b8c2873a9f96e0ffac540439c

duplicates:

  • SR-8111 Weird issue when printing String with unicode character

Issue Description:

The expression command always prints "\u{c2}" for unprintable characters in the range "\u{80}"..."\u{9f}", e.g.:
(lldb) expression "\u{85}"
(String) $R1 = "\u{c2}"

It looks as though the buffer it tries to print is utf-8 encoded and it just grabs the first byte.

@poya
Copy link

poya commented May 13, 2020

Duplicate of SR-8111

@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

2 participants