This is the mail archive of the
cygwin-talk
mailing list for the cygwin project.
Re: bug in mbrtowc?
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: The Only Vaguely Off-Topic This Time Cygwin-Talk Maiming And Light Chat List <cygwin-talk at cygwin dot com>
- Date: Tue, 28 Jul 2009 11:37:10 +0100
- Subject: Re: bug in mbrtowc?
- References: <416096c60907271456x5e8cb3f7y64433d542ec6cdcb@mail.gmail.com> <20090728091413.GJ18621@calimero.vinschen.de>
- Reply-to: The Vulgar and Unprofessional Cygwin-Talk List <cygwin-talk at cygwin dot com>
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!