delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/11/04/04:22:03

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Fri, 4 Nov 2005 10:21:51 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: Cygwin <cygwin AT cygwin DOT com>
Subject: Re: Bug: regtool does not fully display REG_MULTI_SZ values that contain a zero-length component
Message-ID: <20051104092150.GT2988@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: Cygwin <cygwin AT cygwin DOT com>
References: <036d01c5e0c1$3f03c9d0$5304a8c0 AT chimaera>
Mime-Version: 1.0
In-Reply-To: <036d01c5e0c1$3f03c9d0$5304a8c0@chimaera>
User-Agent: Mutt/1.4.2i

On Nov  3 21:55, Max Bowsher wrote:
> When printing out a a REG_MULTI_SZ, regtool stops printing at the first 
> \0\0 sequence encountered. However, if the multi-string contains a 
> zero-length element, a \0\0 sequence will be encountered before the end of 
> the data.
> 
> regtool should use the length value returned from the registry query call 
> to know when it has printed all data, not the presence of a \0\0 sequence.

I was going to point you to the drill, http://cygwin.com/acronyms/#PTC,
but I read the description of REG_MULTI_SZ keys again.  It's definitely
defined as a list of null-terminated strings, with an empty string (aka,
one single \0) terminating the list.  Applications requesting a
REG_MULTI_SZ value will not expect an empty string in the middle since
that's against the definition.  If you try to add such a REG_MULTI_SZ
value using RedEdit, you'll get an error message "Data of type
REG_MULTI_SZ cannot contain empty strings. Registry Editor will remove
the empty string found."  What's the deal to change regtool to support
that?


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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