delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/05/26/07:47:48

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 <corinna-cygwin AT cygwin DOT com>
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
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
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019