From owner-freebsd-bugs Fri Mar 31 1:10: 5 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 9390137B50C for ; Fri, 31 Mar 2000 01:10:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id BAA74098; Fri, 31 Mar 2000 01:10:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Date: Fri, 31 Mar 2000 01:10:02 -0800 (PST) Message-Id: <200003310910.BAA74098@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: =?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= Subject: Re: bin/17694: wcstombs() and mbstowcs() unable to handle NULL argument Reply-To: =?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/17694; it has been noted by GNATS. From: =?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= To: Bruce Evans Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: bin/17694: wcstombs() and mbstowcs() unable to handle NULL argument Date: Fri, 31 Mar 2000 11:08:34 +0200 (MET DST) On Fri, 31 Mar 2000, Bruce Evans wrote: > On Thu, 30 Mar 2000, [ISO-8859-1] Mikko Työläjärvi wrote: > > > > > But everybody else has it... > > > > > > Seriously, though: I have not been able to find *any* other > > implementation that does not support this behaviour (HP-UX, AIX, Irix, > > Solaris and Linux/RH6.1). They must have gotten the idea *somewhere*... > > It doesn't seem to be in glibc-2.1.1 either. Oh, it is there alright, but not documented in the info files (RH must be rolling their own man-pages?). Follow "stdlib/wcstombs.c" to "wcsmbs/wcsrtombs.c", search for "NULL special". No mention of why they do it, though. MSVC++ 6.0 does it too (might be a hint where it comes from :-( ). Finally, I did find another system that does not handle the NULL case, according to its documentation at least: DEC (i.e. Compaq whatever). Never mind. /Mikko Mikko Työläjärvi_______________________________________mikko@rsasecurity.com RSA Security To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message