Rich Morin
2007-Nov-23 19:22 UTC
[dtrace-discuss] printing D files with lpr(1) on Leopard?
When I try to print D files on Leopard using lpr(1), I get: Unsupported format ''application/x-csource'' In case this had to do with the extension, I tried using % lpr < foo Any comments or suggestions before I file a bug report? -r -- http://www.cfcl.com/rdm Rich Morin http://www.cfcl.com/rdm/resume rdm at cfcl.com http://www.cfcl.com/rdm/weblog +1 650-873-7841 Technical editing and writing, programming, and web development
James C. McPherson
2007-Nov-23 23:39 UTC
[dtrace-discuss] printing D files with lpr(1) on Leopard?
Rich Morin wrote:> When I try to print D files on Leopard using lpr(1), I get: > > Unsupported format ''application/x-csource'' > > In case this had to do with the extension, I tried using > > % lpr < foo > > Any comments or suggestions before I file a bug report?Where do you plan to file the bug report? James C. McPherson -- Senior Kernel Software Engineer, Solaris Sun Microsystems http://blogs.sun.com/jmcp http://www.jmcp.homeunix.com/blog
Rich Morin
2007-Nov-24 05:28 UTC
[dtrace-discuss] printing D files with lpr(1) on Leopard?
At 09:39 +1000 11/24/07, James C. McPherson wrote:> Where do you plan to file the bug report?http://bugreport.apple.com is Apple''s approved place to send in generic bug reports. You have to join ADC to be allowed to do so (sigh), but the free "online" membership is enough... -r P.S. Far too many companies make it needlessly difficult to send in bug reports, see what reports others have made, etc. You''d think they didn''t want folks to tell them about their mistakes... -- http://www.cfcl.com/rdm Rich Morin http://www.cfcl.com/rdm/resume rdm at cfcl.com http://www.cfcl.com/rdm/weblog +1 650-873-7841 Technical editing and writing, programming, and web development
Steve Peters
2007-Nov-24 17:07 UTC
[dtrace-discuss] printing D files with lpr(1) on Leopard?
On Nov 23, 2007, at 11:22 AM, Rich Morin wrote:> When I try to print D files on Leopard using lpr(1), I get: > > Unsupported format ''application/x-csource'' > > In case this had to do with the extension, I tried using > > % lpr < fooHmmm, can you try the following (which worked successfully for me on 10.5): il0102a-dhcp54:bin luser$ lpq Canon_MP610_series is ready no entries il0102a-dhcp54:dtrace luser$ cd /usr/bin il0102a-dhcp54:bin luser$ lpr newproc.d il0102a-dhcp54:bin luser$ lpq Canon_MP610_series is ready and printing Rank Owner Job File(s) Total Size active luser 1 newproc.d 1024 bytes SCP -- Steve Peters scp at mac.com
Rich Morin
2007-Nov-24 21:31 UTC
[dtrace-discuss] printing D files with lpr(1) on Leopard?
At 09:07 -0800 11/24/07, Steve Peters wrote:> Hmmm, can you try the following (which worked successfully > for me on 10.5):That worked just fine. My suspicion is that lpr is somehow invoking file(1) to tell it about the data it is being handed. If file(1) sees an initial C-style comment, it categorizes the text as C source code. lpr(1) then decides that that is an "unsupported format". -r -- http://www.cfcl.com/rdm Rich Morin http://www.cfcl.com/rdm/resume rdm at cfcl.com http://www.cfcl.com/rdm/weblog +1 650-873-7841 Technical editing and writing, programming, and web development