X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=0.3 required=5.0 tests=AWL,BAYES_50,T_FILL_THIS_FORM_SHORT X-Spam-Check-By: sourceware.org From: "DEWI - N. Zacharias" To: "'Andrey Repin'" Date: Tue, 1 Jun 2010 09:22:20 +0200 Subject: AW: AW: [bulk] - Re: Reading /proc/registry/... returns extra char Message-ID: <8CCC8F85C5F2784387A32FAD835FB4E602DD77196A@server03> References: <20100513181249 DOT GE13784 AT cupro DOT opengvs DOT com> <2BF01EB27B56CC478AD6E5A0A28931F2F01D44 AT A1DAL1SWPES19MB DOT ams DOT acs-inc DOT net> <20100526114733 DOT GG10652 AT calimero DOT vinschen DOT de> <1254830174 DOT 20100526174227 AT mtu-net DOT ru> <20100526143428 DOT GN10652 AT calimero DOT vinschen DOT de> <326990670 DOT 20100530001515 AT mtu-net DOT ru> <20100530055757 DOT GA3251 AT trixie DOT casa DOT cgf DOT cx> <1656998784 DOT 20100531033519 AT mtu-net DOT ru> <8CCC8F85C5F2784387A32FAD835FB4E602DD771961 AT server03> <756769733 DOT 20100601033505 AT mtu-net DOT ru> In-Reply-To: <756769733.20100601033505@mtu-net.ru> Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-CheckCompat: OK X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 > Von: Andrey Repin [] > Gesendet: Dienstag, 1. Juni 2010 01:35 > An: Zacharias, Norbert; cygwin AT cygwin DOT com > Betreff: Re: AW: [bulk] - Re: Reading /proc/registry/... returns extra ch= ar > > Greetings, DEWI - N. Zacharias! > > >> As per > >> >>definition of a text as "multiple strings". > >> >>You don't need to argue over it, just document it properly :) > >> > >> > Converting a NUL to a EOL would be very strange behavior. > >> > >> Strange? I don't think so. I expect text data from text file. Not bina= ry > >> stream. > > > If the content of a file is binary or text has nothing to do with the f= ile > > structure. As an example a executable is a file as well. > > So what you expect does not matter! The inner structure of a file depen= ds on > > the creator of the file. > > Inner structure of a REG_SZ variable is a... (surprize!) string! Correct! A zero terminated c-style string! So agin what is your problem? > > >> > I don't think you really know what you're asking for. > >> > >> I know. Look at windows own regedit and Registry Browser FAR plugin as > two > >> examples. > >> They do such two-way conversion transparently for user. > > > If you think that such a tool is a good idea, just contribute it. > > I don't think I need tools to filter string from string. So why you bother us with this issue? > > By the way I really don't know why you wasting time on writing mails > > instead of writing a short piece of code to handle such a string. > > I really don't know why you wasting time accusing me of wasting time? > (I hope you got the point? It's my time, and I spending it as I see it fi= t) You get all the information that you need to work with the registry. Insisting on that other people should do an additional work just to please = you will considered (at least by me) as wasting time and increasing inform= ational noise because there is nothing new or valuable in the additional ma= ils . > Eg. in perl it is just one command called chomp. > > May be. I don't know Perl. > Thats your problem ;->=3D> But to be serious just remove the last char from the string that's all.(sim= ple isn't it ??) In case you are using C you can even omit that because terminating a string= with a zero byte is the native way of C to represent strings. Have a nice day Norbert -------------------------------------------------------------------------- Dipl. Phys. Norbert Zacharias Wind Measurements & Power Curve Measurements DEWI GmbH Ebertstrasse 96 26382 Wilhelmshaven Germany Tel.: +49 4421 4808 876 Fax: +49 4421 4808 843 Email: N DOT Zacharias AT dewi DOT de Home: http://http://www.dewi.de DEWI GmbH - Deutsches Windenergie-Institut, Wilhelmshaven Commercial Register No.: Amtsgericht Oldenburg, HRB 130241 Managing Director: Jens Peter Molly Chairman of the supervisory board: Ministerialrat Dr. Niels K=E4mpny P Please consider the environment before printing this email. -- 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