public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug mi/14903] New: incorrect handling of unicode filenames by gdb-mi
@ 2012-12-01 13:17 xdegaye at gmail dot com
  2021-06-19 14:39 ` [Bug mi/14903] " a27573 at outlook dot com
  0 siblings, 1 reply; 2+ messages in thread
From: xdegaye at gmail dot com @ 2012-12-01 13:17 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=14903

             Bug #: 14903
           Summary: incorrect handling of unicode filenames by gdb-mi
           Product: gdb
           Version: 7.3
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mi
        AssignedTo: unassigned@sourceware.org
        ReportedBy: xdegaye@gmail.com
    Classification: Unclassified


The following session shows that although gdb correctly
prints the filename 'π' as the valid unicode sequence b'\xcf\x80', gdb-mi
prints an invalid unicode byte sequence: b'\xcf\x5c' followed by
'200'.


$ ls -l
total 0
-rw-r--r-- 1 xavier xavier 0 2012-12-01 13:07 π
$ cat ../complete_file.txt
complete file 

$ gdb -batch -nx -x ../complete_file.txt | od
0000000 656c6966 0a80cf20                    >file ...<
0000008
$ gdb --interpreter=mi -batch -nx -x ../complete_file.txt | od
0000000 7268743d 2d646165 756f7267 64612d70  >=thread-group-ad<
0000016 2c646564 223d6469 0a223169 6966227e  >ded,id="i1".~"fi<
0000032 cf20656c 3030325c 0a226e5c           >le .\200\n".<
0000044

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug mi/14903] incorrect handling of unicode filenames by gdb-mi
  2012-12-01 13:17 [Bug mi/14903] New: incorrect handling of unicode filenames by gdb-mi xdegaye at gmail dot com
@ 2021-06-19 14:39 ` a27573 at outlook dot com
  0 siblings, 0 replies; 2+ messages in thread
From: a27573 at outlook dot com @ 2021-06-19 14:39 UTC (permalink / raw)
  To: gdb-prs

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

a27573 at outlook dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |a27573 at outlook dot com

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-19 14:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-01 13:17 [Bug mi/14903] New: incorrect handling of unicode filenames by gdb-mi xdegaye at gmail dot com
2021-06-19 14:39 ` [Bug mi/14903] " a27573 at outlook dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).