On Tue, 8 Feb 2000, James Greenhalgh wrote:
> Hi, I'm using .ppd files stolen directly from the printer descriptions folder
> of a mac in the office, and I'm getting this:
>
> Feb 8 14:35:34 storm papd[1658]: getppdent: line too long
>
> The descriptions in question were unpacked from the collection pointed at by
> one of the netatalk FAQs (the adobe set, as far as I know) - does anyone know
> if theres some kind of quick conversion I'm going to have to put them through,
> or a hack in the netatalk src?
The happens because of the cr/lf differences between macs and unix. I
wrote a simple perl script to fix this on my files. I'm attaching it to
this message...
Andy
#!/usr/bin/perl -w
$file = shift(@ARGV);
open(FILE,$file);
undef $/;
$data = <FILE>;
close(FILE);
$data =~ s/\r/\n/msg;
print $data;