From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11443 invoked by alias); 1 Dec 2012 13:17:02 -0000 Received: (qmail 11418 invoked by uid 48); 1 Dec 2012 13:17:01 -0000 From: "xdegaye at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug mi/14903] New: incorrect handling of unicode filenames by gdb-mi Date: Sat, 01 Dec 2012 13:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: mi X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: xdegaye at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2012-q4/txt/msg00340.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=3D14903 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 '=CF=80' 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 =CF=80 $ cat ../complete_file.txt complete file=20 $ gdb -batch -nx -x ../complete_file.txt | od 0000000 656c6966 0a80cf20 >file ...< 0000008 $ gdb --interpreter=3Dmi -batch -nx -x ../complete_file.txt | od 0000000 7268743d 2d646165 756f7267 64612d70 >=3Dthread-group-ad< 0000016 2c646564 223d6469 0a223169 6966227e >ded,id=3D"i1".~"fi< 0000032 cf20656c 3030325c 0a226e5c >le .\200\n".< 0000044 --=20 Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=3Demail ------- You are receiving this mail because: ------- You are on the CC list for the bug.