in an LANG environment with ',' as decimal point, sscanf(optarg, "%f,%f",...) leads to trouble. Appended patch uses "%f:%f" and allows me to enter number with and without post decimal digits.
How about use ';' instead of ':' for delimiter (';' is used as delimiter for
xy-coordinates in Russian)? Or, to use 'x' (as with other gerbv parameters)
it is possible to count 'x' quantity in parameter string, and if it is only
one, separate parameter string in two by 'x' and sscanf each of two part
separately. I doubt someone will want hexadecimals in coordinate. What do
you think?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sergey> How about use ';' instead of ':' for delimiter (';' is used as
Sergey> delimiter for xy-coordinates in Russian)? Or, to use 'x' (as
Sergey> with other gerbv parameters) it is possible to count 'x'
Sergey> quantity in parameter string, and if it is only one, separate
Sergey> parameter string in two by 'x' and sscanf each of two part
Sergey> separately. I doubt someone will want hexadecimals in
Sergey> coordinate. What do you think?
';' is also good. Did not think about it when writing the patch...
'x' needs more care not to be missinterpreted as hex and so should
be deprecated.
appended patch used 'x' as delimiter for translation coordinate input, as other input does. To care for sscanf missinterpreting "0x1", internally 'x' is replaced by ';'
How about use ';' instead of ':' for delimiter (';' is used as delimiter for
xy-coordinates in Russian)? Or, to use 'x' (as with other gerbv parameters)
it is possible to count 'x' quantity in parameter string, and if it is only
one, separate parameter string in two by 'x' and sscanf each of two part
separately. I doubt someone will want hexadecimals in coordinate. What do
you think?
';' is also good. Did not think about it when writing the patch...
'x' needs more care not to be missinterpreted as hex and so should
be deprecated.
Cheers
Uwe Bonnes bon@elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 1623569 ------- Fax. 06151 1623305 ---------
Hello,
appended patch used 'x' as delimiter for translation coordinate input, as other input does. To care for sscanf missinterpreting "0x1", internally 'x' is replaced by ';'
Applied with changes as git 5fdbcf847c56b85929b47c370543016afd96c486