wtfindex and dos line endings

Vince Rice vr8ce@yahoo.com
Tue Nov 25 20:45:00 GMT 2003


> Igor Pechtchanski <pechtcha@cs.nyu.edu> wrote:
>> On Tue, 25 Nov 2003, Vince Rice wrote:
>>
>> I reported a couple of weeks ago that wtfindex choked on text
mounts,
>> and Igor promptly fixed it (thanks, Igor!). I just discovered that
>> wtfindex can't handle DOS line endings, even on text mounts.
>> ...

> Vince,
>
> I'm sorry, I can't reproduce this on my machine. Please provide the
> *exact* steps needed to reproduce it, including the correct mount
command
> (you can temporarily mount some directory, say /tmp/text, in text
mode if
> you need to).
> Igor

Well, then my apologies for not sending cygcheck.out last time; I
thought this would be as simple as the last one (it never is, is
it?). Here is a copy of the session to duplicate this, the file I did
it with, and cygcheck.out.

Thanks,

Vince

@IS2E296:/usr/text\> uname -a
CYGWIN_NT-5.0 IS2E296 1.5.5(0.94/3/2) 2003-09-20 16:31 i686 unknown
unknown Cygwin
@IS2E296:/usr/text\> mount -b "c:\cygwin\usr\text" "/usr/text"
@IS2E296:/usr/text\> od -xa testwtf
0000000 4641 4941 0943 7361 6620 7261 6120 2073
          A   F   A   I   C  ht   a   s  sp   f   a   r  sp   a   s 
sp
0000020 2749 206d 6f63 636e 7265 656e 0a64 4641
          I   '   m  sp   c   o   n   c   e   r   n   e   d  nl   A  
F
0000040 4941 5243 6109 2073 6166 2072 7361 4920
          A   I   C   R  ht   a   s  sp   f   a   r  sp   a   s  sp  
I
0000060 6320 6e61 7220 6365 6c61 0a6c
         sp   c   a   n  sp   r   e   c   a   l   l  nl
0000074
@IS2E296:/usr/text\> wtfindex testwtf
@IS2E296:/usr/text\> wtfdump testwtf
Textfile: testwtf
Datafile: testwtf.dat
Items: 2
Offset  Key     Value
0       AFAIC   as far as I'm concerned
1       AFAICR  as far as I can recall
@IS2E296:/usr/text\> unix2dos testwtf
testwtf: done.
@IS2E296:/usr/text\> od -xa testwtf
0000000 4641 4941 0943 7361 6620 7261 6120 2073
          A   F   A   I   C  ht   a   s  sp   f   a   r  sp   a   s 
sp
0000020 2749 206d 6f63 636e 7265 656e 0d64 410a
          I   '   m  sp   c   o   n   c   e   r   n   e   d  cr  nl  
A
0000040 4146 4349 0952 7361 6620 7261 6120 2073
          F   A   I   C   R  ht   a   s  sp   f   a   r  sp   a   s 
sp
0000060 2049 6163 206e 6572 6163 6c6c 0a0d
          I  sp   c   a   n  sp   r   e   c   a   l   l  cr  nl
0000076
@IS2E296:/usr/text\> wtfindex testwtf
@IS2E296:/usr/text\> wtfdump testwtf
Textfile: testwtf
Datafile: testwtf.dat
Items: 2
Offset  Key     Value
0       AFAIC   as far as I'm concerned
1       AFAICR  as far as I can recall
@IS2E296:/usr/text\> dos2unix testwtf
testwtf: done.
@IS2E296:/usr/text\> umount /usr/text
@IS2E296:/usr/text\> mount -t "c:\cygwin\usr\text" "/usr/text"
@IS2E296:/usr/text\> od -xa testwtf
0000000 4641 4941 0943 7361 6620 7261 6120 2073
          A   F   A   I   C  ht   a   s  sp   f   a   r  sp   a   s 
sp
0000020 2749 206d 6f63 636e 7265 656e 0a64 4641
          I   '   m  sp   c   o   n   c   e   r   n   e   d  nl   A  
F
0000040 4941 5243 6109 2073 6166 2072 7361 4920
          A   I   C   R  ht   a   s  sp   f   a   r  sp   a   s  sp  
I
0000060 6320 6e61 7220 6365 6c61 0a6c
         sp   c   a   n  sp   r   e   c   a   l   l  nl
0000074
@IS2E296:/usr/text\> wtfindex testwtf
@IS2E296:/usr/text\> wtfdump testwtf
Textfile: testwtf
Datafile: testwtf.dat
Items: 2
Offset  Key     Value
0       AFAIC   as far as I'm concerned
1       AFAICR  as far as I can recall
@IS2E296:/usr/text\> unix2dos testwtf
testwtf: done.
@IS2E296:/usr/text\> od -xa testwtf
0000000 4641 4941 0943 7361 6620 7261 6120 2073
          A   F   A   I   C  ht   a   s  sp   f   a   r  sp   a   s 
sp
0000020 2749 206d 6f63 636e 7265 656e 0d64 410a
          I   '   m  sp   c   o   n   c   e   r   n   e   d  cr  nl  
A
0000040 4146 4349 0952 7361 6620 7261 6120 2073
          F   A   I   C   R  ht   a   s  sp   f   a   r  sp   a   s 
sp
0000060 2049 6163 206e 6572 6163 6c6c 0a0d
          I  sp   c   a   n  sp   r   e   c   a   l   l  cr  nl
0000076
@IS2E296:/usr/text\> wtfindex testwtf
@IS2E296:/usr/text\> wtfdump testwtf
Textfile: testwtf
Datafile: testwtf.dat
Items: 2
Offset  Key     Value
0
AFAIC           as far as I can recal
1       AFAIC   as far as I'm concerned
@IS2E296:/usr/text\>


__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: testwtf
URL: <http://cygwin.com/pipermail/cygwin/attachments/20031125/ee51928e/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20031125/ee51928e/attachment-0001.ksh>
-------------- next part --------------
--
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/


More information about the Cygwin mailing list