delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Message-ID: | <30E7BC40E838D211B3DB00104B09EFB779535F@delorean.optimation.co.nz> |
From: | David Sainty <David DOT Sainty AT optimation DOT co DOT nz> |
To: | "Cygwin (E-mail)" <cygwin AT cygwin DOT com> |
Cc: | "dave @ dtsp (E-mail)" <dave AT dtsp DOT co DOT nz> |
Subject: | regtool doesn't support binary data very well |
Date: | Mon, 27 Nov 2000 13:06:11 +1300 |
MIME-Version: | 1.0 |
X-Mailer: | Internet Mail Service (5.5.2650.21) |
The regtool command can insert binary data as follows: $ regtool -m set 'machine\System\CurrentControlSet\Control\KeyBoard Layout\Scancode Maps' "xyz" Each argument is NUL terminated, and the entire value is also NUL terminated. This means that there is no way to avoid two NUL's on the end. But, really, it would be nice to be able to go: regtool -m set 'machine\System\CurrentControlSet\Control\KeyBoard Layout\Scancode Maps' 00 00 00 00 00 00 00 00 02 00 00 00 1d 00 3a 00 00 00 00 00 ... or something like it. Possibly with a 0x prefix on each value, and possibly with a new option to indicate to use this form. I can achieve what I want under zsh with the following: % regtool -m set 'machine\System\CurrentControlSet\Control\KeyBoard Layout\Scancode Maps' '' '' '' '' '' '' '' '' "${(pl:1::::\002:)}" '' '' "${(pl:1::::\035:)}" "${(pl:1::::\072:)}" '' '' '' But it's pretty messy :) I'm happy to provide a patch for this... Cheers, Dave -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |