From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18037 invoked by alias); 28 Jul 2009 10:24:17 -0000 Received: (qmail 18022 invoked by uid 22791); 28 Jul 2009 10:24:14 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-ew0-f217.google.com (HELO mail-ew0-f217.google.com) (209.85.219.217) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 28 Jul 2009 10:24:08 +0000 Received: by ewy17 with SMTP id 17so3863058ewy.2 for ; Tue, 28 Jul 2009 03:24:06 -0700 (PDT) Received: by 10.211.179.6 with SMTP id g6mr6417976ebp.49.1248776645916; Tue, 28 Jul 2009 03:24:05 -0700 (PDT) Received: from ?192.168.2.99? (cpc2-cmbg8-0-0-cust61.cmbg.cable.ntl.com [82.6.108.62]) by mx.google.com with ESMTPS id 10sm2304546eyz.21.2009.07.28.03.24.05 (version=SSLv3 cipher=RC4-MD5); Tue, 28 Jul 2009 03:24:05 -0700 (PDT) Message-ID: <4A6ED4D6.5080905@gmail.com> Date: Tue, 28 Jul 2009 10:24:00 -0000 From: Dave Korn User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: The Only Vaguely Off-Topic This Time Cygwin-Talk Maiming And Light Chat List Subject: Re: bug in mbrtowc? References: <416096c60907271456x5e8cb3f7y64433d542ec6cdcb@mail.gmail.com> <20090728091413.GJ18621@calimero.vinschen.de> In-Reply-To: <20090728091413.GJ18621@calimero.vinschen.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-talk-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cygwin-talk-owner@cygwin.com Reply-To: The Vulgar and Unprofessional Cygwin-Talk List Mail-Followup-To: cygwin-talk@cygwin.com X-SW-Source: 2009-q3/txt/msg00038.txt.bz2 Corinna Vinschen wrote: > > That's a bug in the newlib function __utf8_mbtowc. I'm really surprised > that this bug has never been reported before since it's in the code for > years, probably since it has been introduced in 2002. I'm not terribly surprised. How much use for i18n is there in the typical embedded microcontroller? We're probably the first project to really use this code in anger(*); cf. also how we still shake out the odd longstanding floating point bug in newlib, another area that is significantly less-used in tiny embedded apps than on desktop workstations. cheers, DaveK -- (*) - Yes, I know about newlib-based linux. I don't suppose anyone logging into a single board embedded linux dev kit bothers to set their LC_ALL either!