From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15569 invoked by alias); 19 Oct 2017 02:22:50 -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 15096 invoked by uid 89); 19 Oct 2017 02:22:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: =?ISO-8859-1?Q?Yes, score=9.8 required=5.0 tests=BAYES_50,FOREIGN_BODY1,FREEMAIL_FROM,LIKELY_SPAM_SUBJECT,MISSING_HEADERS,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_PASS autolearn=no version=3.3.2 spammy=No, n=c3=a3o, HX-Yahoo-Newman-Property:ymail-3, H*r:NNFMP?= X-HELO: sonic307-10.consmr.mail.gq1.yahoo.com Received: from sonic307-10.consmr.mail.gq1.yahoo.com (HELO sonic307-10.consmr.mail.gq1.yahoo.com) (98.137.64.34) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 19 Oct 2017 02:22:48 +0000 Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.gq1.yahoo.com with HTTP; Thu, 19 Oct 2017 02:22:47 +0000 Received: from [127.0.0.1] by smtp231.mail.gq1.yahoo.com with NNFMP; 19 Oct 2017 02:22:46 -0000 X-Yahoo-SMTP: 7HKCjTKswBB84IEK7UnyNnPd_Z73rIC4yT_rB0q1YY2Q_dG0TQ_WkfySzR.Khtvb_l8vIlY- Message-ID: <59E80C65.7060300@yahoo.com> Date: Thu, 19 Oct 2017 02:22:00 -0000 From: "Dedeco Balaco via gdb" Reply-To: Dedeco Balaco User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5 MIME-Version: 1.0 CC: gdb@sourceware.org Subject: Re: How to debug with gdbtui and utf-8 source files? References: <1311475292.483858.1508348766742.ref@mail.yahoo.com> <1311475292.483858.1508348766742@mail.yahoo.com> <63f3e4a1c9457f68f45e4401d5a1f14e@polymtl.ca> In-Reply-To: <63f3e4a1c9457f68f45e4401d5a1f14e@polymtl.ca> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2017-10/txt/msg00053.txt.bz2 Em 18-10-2017 16:36, Simon Marchi escreveu: > On 2017-10-18 13:46, Dedeco Balaco Baco via gdb wrote: >> 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 them 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ão temos nenhum nó, garante não 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=pt_BR.UTF-8 >> LANGUAGE=pt_BR.UTF-8:en_GB:en >> LC_ALL=pt_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 that, please offer, if that is possible. > > As discussed on IRC, this was likely fixed with this commit > > Allow linking GDB with ncursesw > 5007d765ae09c10c7f3b18bb16841b9d2d59e181 > https://sourceware.org/ml/gdb-patches/2017-09/msg00356.html > Ok, I will try that and report in this thread if it worked or not.