|
From: Ethan M. <merritt@u.washington.edu> - 2005-06-13 17:23:52
|
On Monday 13 June 2005 01:02 am, Hans-Bernhard Broeker wrote: > Ethan Merritt wrote: > > > I was under the impression that there is no way of separating the locale > > used for input (e.g. scanf) from the locale used for output (e.g. printf). > > Do you know otherwise? > > Well, we know when we're doing what, so we could conceivably switch > between the two at the correct times during the process. Worst thing > that could happen is slightly unexpected error messages in input locale > rather than output locale, if they are printed during datafile reading. It would have to be a very fine-grained switch, bracketing each scanf/printf call. For instance a plot command like plot 'foo' using 1:2:(sprintf(format,column(3))) with labels will be mixing scanf and sprintf during the parsing of every data line. Could be done, but I can already here the screams about the performance hit :-) -- Ethan A Merritt merritt@u.washington.edu Biomolecular Structure Center Mailstop 357742 University of Washington, Seattle, WA 98195 |