X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Wed, 26 May 2010 13:47:33 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Reading /proc/registry/... returns extra char Message-ID: <20100526114733.GG10652@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20100513181249 DOT GE13784 AT cupro DOT opengvs DOT com> <2BF01EB27B56CC478AD6E5A0A28931F2F01D44 AT A1DAL1SWPES19MB DOT ams DOT acs-inc DOT net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <2BF01EB27B56CC478AD6E5A0A28931F2F01D44@A1DAL1SWPES19MB.ams.acs-inc.net> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On May 13 15:38, Nellis, Kenneth wrote: > > From: Dale Stimson > > Sent: Thursday, May 13, 2010 14:13 > > To: cygwin AT cygwin DOT com > > Subject: Reading /proc/registry/... returns extra char > > > > Reading a file under /proc/registry returns an extra character at the > > end, > > which appears to be the null character. > > > > This has happened for every registry entry that I have tried. Here is > > one in particular: > > -------------------------------- > > $ cat >a.dat > > /proc/registry/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/Syst > > emBootDevice This trailing NUL character was always there, already with Cygwin 1.5. It's part of the file content. If strings are stored with a trailing NUL in a file, you don't want Cygwin to remove it for you, right? > Not only that, but if you pipe that output to another process, you > (or should I say "I") get a stack dump: I can't observe this when using CVS HEAD. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple