To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cadOpen lugnet.cad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / 16547
16546  |  16548
Subject: 
Re: ldlister 0.1
Newsgroups: 
lugnet.cad
Date: 
Mon, 19 Oct 2009 21:23:58 GMT
Viewed: 
9611 times
  
In lugnet.cad, Santeri Piippo wrote:
In lugnet.cad, Steve Bliss wrote:
One small nit: in the output file, it seems the lines are terminated by
a three-byte sequence 0D0D0A (CR-CR-LF).  This sequence confuses WordPad,
which shows the resulting PARTS.LST as all one line.  Oddly, Notepad
(which is confused by files terminated with just CR's) displays this
PARTS.LST without any trouble.

Now that I look at the code, it does have a "\r" at the end of the string
where it puts the part into the parts list... I wonder what was I thinking \
at the moment.

Maybe you need the extra \r to get DOS file endings when running the linux
version of ldlister?



Message has 1 Reply:
  Re: ldlister 0.1
 
(...) If there's a Linux version, the best thing to do is to open the file as a binary file and continue using \r\n as the line ending in the source code. In other words, leave your text output code alone, but change the file open call to use binary (...) (15 years ago, 19-Oct-09, to lugnet.cad)

Message is in Reply To:
  Re: ldlister 0.1
 
(...) :-) (...) Now that I look at the code, it does have a "\r" at the end of the string where it puts the part into the parts list... I wonder what was I thinking at the moment. On the (bit further away) works is a feature which lets primitives (...) (15 years ago, 19-Oct-09, to lugnet.cad)

8 Messages in This Thread:



Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR