From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 100390 invoked by alias); 18 Oct 2017 17:50:16 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 100339 invoked by uid 89); 18 Oct 2017 17:50:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: =?ISO-8859-1?Q?Yes, score=6.0 required=5.0 tests=AWL,BAYES_40,FOREIGN_BODY1,FREEMAIL_FROM,LIKELY_SPAM_SUBJECT,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_PASS autolearn=no version=3.3.2 spammy=No, n=c3=a3o, flawlessly, temos?= X-HELO: sonic316-47.consmr.mail.ne1.yahoo.com Received: from sonic316-47.consmr.mail.ne1.yahoo.com (HELO sonic316-47.consmr.mail.ne1.yahoo.com) (66.163.187.173) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 18 Oct 2017 17:50:15 +0000 Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.ne1.yahoo.com with HTTP; Wed, 18 Oct 2017 17:50:13 +0000 Date: Wed, 18 Oct 2017 17:50:00 -0000 From: "Dedeco Balaco Baco via gdb" Reply-To: Dedeco Balaco Baco Reply-To: Dedeco Balaco Baco To: Message-ID: <1311475292.483858.1508348766742@mail.yahoo.com> Subject: How to debug with gdbtui and utf-8 source files? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable References: <1311475292.483858.1508348766742.ref@mail.yahoo.com> X-IsSubscribed: yes X-SW-Source: 2017-10/txt/msg00051.txt.bz2 I have: - a terminal set to UTF-8 in an OS where UTF-8 locales are installed: Mate = Terminal 1.12.1 (does not matter, as long as its character encoding is utf-= 8) - a C source file which contains (both) utf-8 comments and utf-8 strings - gdbtui: $ gdbtui --version GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1 The program compiles and works flawlessly, with its output being correctly = shown in the terminal. gdbtui, on the other hand, does not show the comments correctly, making the= m hard to read and also braking the size and making a few lines occupy two = screenlines. This makes strange things happen when we step-by-step through = these lines. For example, instead of showing: "// N=C3=A3o temos nenhum n=C3=B3, garante n=C3=A3o ter um falso ponteiro" in the source window, gdbtui shows: "// NM-CM-#o temos nenhum nM-CM-3, garante nM-CM-#o ter um falso ponteiro" The environment is correctly set: $ set | grep -e 'LANG|LC_ALL' LANG=3Dpt_BR.UTF-8 LANGUAGE=3Dpt_BR.UTF-8:en_GB:en LC_ALL=3Dpt_BR.UTF-8 How can I make gdbtui work correctly? If no answer exist for this question,= I may help filling a bug report about it. I will need a bit of help with t= hat, please offer, if that is possible.