This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug rust/20164] New: fix string printing in rust


https://sourceware.org/bugzilla/show_bug.cgi?id=20164

            Bug ID: 20164
           Summary: fix string printing in rust
           Product: gdb
           Version: unknown
            Status: NEW
          Severity: normal
          Priority: P2
         Component: rust
          Assignee: unassigned at sourceware dot org
          Reporter: tromey at sourceware dot org
  Target Milestone: ---

String printing in rust is somewhat wrong.

I think it always tries to print &[u8] using UTF-8.
Maybe that is ok, but sometimes &[u8] is just bytes.
Maybe some detection could be done; or maybe it could
default to printing bytes and special case the contents
of &str.

Escapes should be printed rust-style, like \u{nnn},
but currently are not.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]