From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2707 invoked by alias); 27 Nov 2006 15:13:45 -0000 Received: (qmail 2690 invoked by uid 22791); 27 Nov 2006 15:13:45 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 27 Nov 2006 15:13:37 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id kARFDamC009442 for ; Mon, 27 Nov 2006 10:13:36 -0500 Received: from lacrosse.corp.redhat.com (lacrosse.corp.redhat.com [172.16.52.154]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id kARFDZKD032618; Mon, 27 Nov 2006 10:13:35 -0500 Received: from [192.168.7.77] (vpn-14-6.rdu.redhat.com [10.11.14.6]) by lacrosse.corp.redhat.com (8.12.11.20060308/8.11.6) with ESMTP id kARFDYBM016830; Mon, 27 Nov 2006 10:13:35 -0500 Message-ID: <456B009E.6060403@redhat.com> Date: Mon, 27 Nov 2006 15:13:00 -0000 From: Ulrich Drepper User-Agent: Thunderbird 1.5.0.8 (X11/20061107) MIME-Version: 1.0 To: Jakub Jelinek CC: Arjan van de Ven , Glibc hackers Subject: Re: [PATCH] Fix wide stdio References: <20061124130448.GK3849@sunsite.mff.cuni.cz> <45670D02.6010402@redhat.com> <20061127140506.GN3849@sunsite.mff.cuni.cz> In-Reply-To: <20061127140506.GN3849@sunsite.mff.cuni.cz> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Mailing-List: contact libc-hacker-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sourceware.org X-SW-Source: 2006-11/txt/msg00020.txt.bz2 Jakub Jelinek wrote: > I'd like to understand what's still screwed up big time after the patch > I posted. Any buffer provided must be associated with the wide char buffer for wide streams, not the underlying temporary buffer. This requires, if setvbuf is called before the decision is made, to move the buffer from being used in the output buffer to being used as the wide char buffer. Along with handling alignment issues etc this is a terribly complex change. -- ➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖