This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug mi/14903] New: incorrect handling of unicode filenames bygdb-mi
- From: "xdegaye at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sat, 01 Dec 2012 13:16:59 +0000
- Subject: [Bug mi/14903] New: incorrect handling of unicode filenames bygdb-mi
- Auto-submitted: auto-generated
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.