From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4303 invoked by alias); 3 Mar 2012 16:34:38 -0000 Received: (qmail 3749 invoked by uid 22791); 3 Mar 2012 16:34:35 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,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-ey0-f169.google.com (HELO mail-ey0-f169.google.com) (209.85.215.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 03 Mar 2012 16:34:22 +0000 Received: by eaal1 with SMTP id l1so979444eaa.0 for ; Sat, 03 Mar 2012 08:34:21 -0800 (PST) Received-SPF: pass (google.com: domain of mathiaskunter@gmail.com designates 10.213.101.1 as permitted sender) client-ip=10.213.101.1; Authentication-Results: mr.google.com; spf=pass (google.com: domain of mathiaskunter@gmail.com designates 10.213.101.1 as permitted sender) smtp.mail=mathiaskunter@gmail.com; dkim=pass header.i=mathiaskunter@gmail.com Received: from mr.google.com ([10.213.101.1]) by 10.213.101.1 with SMTP id a1mr1958297ebo.76.1330792461033 (num_hops = 1); Sat, 03 Mar 2012 08:34:21 -0800 (PST) Received: by 10.213.101.1 with SMTP id a1mr1503986ebo.76.1330792460922; Sat, 03 Mar 2012 08:34:20 -0800 (PST) Received: from [192.168.1.149] (178-190-57-167.adsl.highway.telekom.at. [178.190.57.167]) by mx.google.com with ESMTPS id y14sm35987851eef.10.2012.03.03.08.34.18 (version=SSLv3 cipher=OTHER); Sat, 03 Mar 2012 08:34:20 -0800 (PST) Message-ID: <4F52480A.6000507@gmail.com> Date: Sat, 03 Mar 2012 16:34: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: Using UTF-8 as host charset 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/msg00001.txt.bz2 Dear members of the gdb mailing list, I'm working on a patch for Eclipse which adds full charset support to the CDT debugger. We're setting gdb's host-charset to UTF-8 to achieve this. There already had been discussion about this back in 2010 here on the gdb mailing list. Tom Tromey said back then - quoted from http://sourceware.org/ml/gdb/2010-08/msg00129.html > It is an oddity that currently an MI consumer must check gdb's > host charset in order to know how to decode its output. I would > recommend that the client force it to be UTF-8, but I think this > currently may not work with PHONY_ICONV. So the question is, is it actually a good idea to simply always set gdb's host charset to UTF-8? Which hosts do use the phony iconv, and is it indeed a problem for them if the host charset is UTF-8? Note that we're only talking about gdb 7.0 or later. We don't plan to support this feature for gdb < 7.0 within CDT. Thanks for any hints! Mathias PS: Just for reference: the corresponding Eclipse bug report can be found at https://bugs.eclipse.org/bugs/show_bug.cgi?id=307311