From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31180 invoked by alias); 11 Mar 2010 18:18:09 -0000 Received: (qmail 31171 invoked by uid 22791); 11 Mar 2010 18:18:09 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 11 Mar 2010 18:18:05 +0000 Received: (qmail 1170 invoked from network); 11 Mar 2010 18:18:03 -0000 Received: from unknown (HELO caradoc.them.org) (dan@127.0.0.2) by mail.codesourcery.com with ESMTPA; 11 Mar 2010 18:18:03 -0000 Date: Thu, 11 Mar 2010 18:18:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sourceware.org Cc: Corinna Vinschen , Tom Tromey Subject: Windows charset change Message-ID: <20100311181801.GF9310@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-03/txt/msg00416.txt.bz2 My mingw builds have: charset.c: In function '_initialize_charset': charset.c:935: error: type defaults to 'int' in declaration of 'w32_host_default_charset' charset.c:938: error: implicit declaration of function 'GetACP' charset.c:938: error: passing argument 1 of 'snprintf' from incompatible pointer type charset.c:939: error: assignment from incompatible pointer type The error on line 935 is straightforward: static w32_host_default_charset[16]; /* "CP" + x<=5 digits + paranoia. */ This is supposed to be char, I presume? The implicit declaration of GetACP is harder; I don't know what should have been included to declare it. Looks like windows.h or winnls.h. -- Daniel Jacobowitz CodeSourcery