To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.dev.macOpen lugnet.cad.dev.mac in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / Macintosh / 297
296  |  298
Subject: 
Re: L3P v1.3 for Mac OSX
Newsgroups: 
lugnet.cad.dev.mac
Date: 
Thu, 5 Dec 2002 10:28:34 GMT
Viewed: 
1421 times
  
In lugnet.cad.dev.mac, Erik Olson writes:
Lars, I used L3P this weekend. Since this is my first time using it, I
tested only very simple uses. No problems found, unless you consider it a
bug that it behaves badly with CR line endings. It's hard to tell which
input file it is complaining about. I used 'Mac Army Knife' on my LDRAW
folder to fix all the problem files.

How does it behave badly?
Does it fail to read some lines?

L3P uses fgets and then removes trailing \n and \r,
but perhaps this fails on "old" mac files,
which I believe use the CR ending.
On MacOSX, \n is mapped to LF, so how do you read CR ended files?

It's hard to tell which input file it is complaining about.
I used 'Mac Army Knife' on my LDRAW folder to fix all the problem files.

What did you fix, how exactly was the fix done?


Thanks!

I would like to put a "Run l3p" command in the BrickDraw3D menu so users of
my program can rely on yours to do POV export. If that's ok with you.

Sure. Depending on how you fork L3P on the Mac, you should perhaps specify
the -stdout option, http://www.hassings.dk/l3/l3p.html#stdout
/Lars



Message has 1 Reply:
  Re: L3P v1.3 for Mac OSX
 
(...) Essentially the \r make it one big line. L3P says it has the wrong number of fields. Maybe it reads the buffer limit and tries again because there is a variety of error messages per file. Now that you ask I don't know how one can use fgets for (...) (22 years ago, 5-Dec-02, to lugnet.cad.dev.mac)

Message is in Reply To:
  Re: L3P v1.3 for Mac OSX
 
Lars, I used L3P this weekend. Since this is my first time using it, I tested only very simple uses. No problems found, unless you consider it a bug that it behaves badly with CR line endings. It's hard to tell which input file it is complaining (...) (22 years ago, 4-Dec-02, to lugnet.cad.dev.mac)

42 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