> Or, Ian, coming back to your way (as I interpret it). lpstat
> is invoked
> like this:
>
> lpstat = popen("lpstat -p -d", "r");
>
> I tried:
>
> lpstat = popen("LC_MESSAGES=C lpstat -p -d", "r");
>
> and this worked as well. Looks much cleaner to me, because it only
> modifies the lpstat environment. :-)
>
> Is this what you proposed? Any better ideas?
Yes - this is what I'd seen done in the past (and then copied!)
There may well be better ways, but that seems simple and clean to me.
I suppose we could fork off a whole new process space, putenv("stuff")
in that, get the lpstat output, then expire the forked process space
(thus not modifying the env for the main process) but that sounds like
an awful lot more work to no real benefit?
SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14
3EL
A company registered in England & Wales. Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev