From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10699 invoked by alias); 5 Mar 2012 20:51:03 -0000 Received: (qmail 10676 invoked by uid 22791); 5 Mar 2012 20:51:01 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SARE_SUB_ENC_UTF8 X-Spam-Check-By: sourceware.org Received: from mail-ww0-f43.google.com (HELO mail-ww0-f43.google.com) (74.125.82.43) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 05 Mar 2012 20:50:48 +0000 Received: by wgbdr12 with SMTP id dr12so3183110wgb.12 for ; Mon, 05 Mar 2012 12:50:46 -0800 (PST) Received-SPF: pass (google.com: domain of mathiaskunter@gmail.com designates 10.180.92.71 as permitted sender) client-ip=10.180.92.71; Authentication-Results: mr.google.com; spf=pass (google.com: domain of mathiaskunter@gmail.com designates 10.180.92.71 as permitted sender) smtp.mail=mathiaskunter@gmail.com; dkim=pass header.i=mathiaskunter@gmail.com Received: from mr.google.com ([10.180.92.71]) by 10.180.92.71 with SMTP id ck7mr22507030wib.3.1330980646805 (num_hops = 1); Mon, 05 Mar 2012 12:50:46 -0800 (PST) Received: by 10.180.92.71 with SMTP id ck7mr18071076wib.3.1330980595395; Mon, 05 Mar 2012 12:49:55 -0800 (PST) Received: from [192.168.1.149] (178-191-231-126.adsl.highway.telekom.at. [178.191.231.126]) by mx.google.com with ESMTPS id be4sm67611061wib.8.2012.03.05.12.49.53 (version=SSLv3 cipher=OTHER); Mon, 05 Mar 2012 12:49:54 -0800 (PST) Message-ID: <4F5526F1.2010003@gmail.com> Date: Mon, 05 Mar 2012 20:51:00 -0000 From: Mathias Kunter User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: gdb@sourceware.org Subject: Re: Using UTF-8 as host charset References: <4F52480A.6000507@gmail.com> <87ty23vw4p.fsf@fleche.redhat.com> In-Reply-To: <87ty23vw4p.fsf@fleche.redhat.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 X-SW-Source: 2012-03/txt/msg00014.txt.bz2 > I think it probably isn't really safe to just set host-charset. > Instead you should arrange to run gdb in a UTF-8 locale. This unfortunately isn't generally possible for a cross-platform IDE like Eclipse CDT. > I'm not sure exactly what might break though. As long as GDB doesn't crash and still prints ASCII strings correctly, it won't concern us. I mean, we didn't support any non-ASCII characters at all until now within the CDT debugger. And I assume that ASCII strings will always be printed correctly by GDB, even if the host charset is set to UTF-8, since ASCII is just a subset of UTF-8. What we're trying to find out is whether we should enable the debugger charset support by default within future releases of Eclipse CDT or not. If GDB is generally stable with using UTF-8 as host charset, we'd do so. Can you give a recommendation? Thanks, Mathias