Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: RE: CygPath to Clipboard (was: example needed pls ...) Date: Sun, 6 Jul 2003 10:14:23 -0700 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Stephan Mueller" To: "Soren A." , X-OriginalArrivalTime: 06 Jul 2003 17:13:32.0467 (UTC) FILETIME=[ED504830:01C343E1] Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h66HDlY22915 Looks like it's the hex-encoded representation of some Unicode text (each character is a 16-bit entity). For plain ASCII values (e.g. English text), yes, you'll see every other byte as a zero. stephan(); -----Original Message----- From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of Soren A. Sent: Sunday, July 06, 2003 12:08 AM To: cygwin AT cygwin DOT com Subject: Re: CygPath to Clipboard (was: example needed pls ...) Yes, a bit OT, but could be useful to understand more about it... Soren A wrote in news:Xns93ACAEA0E9DBEsoren1Gmane AT 80 DOT 91 DOT 224 DOT 249: > I cannot get the Registry to accept the entries now! Each time I try I > get the keys created OK, but the "command" is undefined (I am writing > of how we see the Registry in "regedit"). Still no joy. On a WinXP system (the other I refer to is Win98) I used the regedit tool to look at some REG_EXPAND_SZ entries already in the Registry, and exported a key for examination. What I discover if I do this seems *BIZARRE* (but we are talking about Microsoft here so nothing ought to surprise us). I see the string of hex bytes exported as we have been discussing, but each one _is followed by a null byte_. Thus one entry I examined looks like this: "TEMP"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,0 0,74,\ 00,25,00,5c,00,54,00,45,00,4d,00,50,00,00,00 Do you see what I mean? "25,00,53,00,79,00: ... . If *that's* the format RegEdit expects (and it could have changed between 98 and XP, anyone know?) then it would certainly explain why I haven't been able to get any subsequent tries to work. Even the terminating null is followed by a null. Now I am scratching my head so hard my hairline is imperiled... Soren A. -- "So, tell me, my little one-eyed one, on what poor, pitiful, defenseless planet has my MONSTROSITY been unleashed?" - Dr. Jumba, Disney's "Lilo & Stitch" OpenPGP Key at http://savannah.gnu.org/people/viewgpg.php?user_id=6050 -- 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/ -- 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/