From owner-cvs-src@FreeBSD.ORG Tue Nov 4 03:05:56 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BBD5D16A4CE; Tue, 4 Nov 2003 03:05:56 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3757C43F3F; Tue, 4 Nov 2003 03:05:56 -0800 (PST) (envelope-from tjr@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id hA4B5tXJ003875; Tue, 4 Nov 2003 03:05:55 -0800 (PST) (envelope-from tjr@repoman.freebsd.org) Received: (from tjr@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id hA4B5tCb003874; Tue, 4 Nov 2003 03:05:55 -0800 (PST) (envelope-from tjr) Message-Id: <200311041105.hA4B5tCb003874@repoman.freebsd.org> From: "Tim J. Robbins" Date: Tue, 4 Nov 2003 03:05:55 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libc/stdio fgetwc.c fputwc.c ungetwc.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Nov 2003 11:05:56 -0000 tjr 2003/11/04 03:05:55 PST FreeBSD src repository Modified files: lib/libc/stdio fgetwc.c fputwc.c ungetwc.c Log: Pass mbrtowc() and wcrtomb() NULL instead of a pointer to a freshly zeroed mbstate_t object that they ignore. The zeroing is fairly expensive, and it will never be necessary in these functions; when we support state-dependent encodings, we will pass in a pointer to the file's mbstate_t object, and only zero it at the time the file gets opened. Revision Changes Path 1.7 +1 -3 src/lib/libc/stdio/fgetwc.c 1.7 +1 -3 src/lib/libc/stdio/fputwc.c 1.6 +1 -3 src/lib/libc/stdio/ungetwc.c