|
Message-ID: <20140805212318.GN1674@brightrain.aerifal.cx> Date: Tue, 5 Aug 2014 17:23:18 -0400 From: Rich Felker <dalias@...c.org> To: musl@...ts.openwall.com Subject: Re: Bug report on iswalpha On Tue, Aug 05, 2014 at 02:10:25PM -0700, Alon Zakai wrote: > I see what you mean, yes, this does seem like undefined behavior then, as > it's invalid in that locale. Thanks for the quick response! Just to be clear -- given musl's current C locale, it's not UB in musl. In musl's current C locale, mbtowc() for "\xc3\xb4" produces (wchar_t)0xf4, so the behavior is well-defined and the "true" result is correct. On the other hand, the behavior is undefined for glibc. Rich
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.