[sldev] Issue for tonight's meeting VWR-729
Argent Stonecutter
secret.argent at gmail.com
Sun Mar 16 09:36:37 PDT 2008
Personally, I don't think stdio should have been made locale-
sensitive, but rather a more flexible library possibly including
locale-sensitive extensions of stdio calls like printf and scanf
should have been created, but that's water under the bridge now.
However, building on that thought...
I believe option 4 is the correct path: don't call stdio scanning and
formatting routines for these operations, but incorporate a number
parser and corresponding numeric formatting function that is
independent of locale. This would not need to be a full replacement
for *printf/*scanf, since it's unlikely that more than a fraction of
*scanf functionality is being used. In particular, given control of
the file format, exponential notation need never be handled.
David Gay's strtod() implementation, used by FreeBSD, is released
under a current-BSD-equivalent license (and hence is completely
license-compatible with GPL code as well as both Linden Labs
licenses) and will produce a locale-independent strtod by compiling
it without USE_LOCALE defined.
More information about the SLDev
mailing list