[spambayes-dev] RE: [Python-Dev] RE: [Spambayes] Question (orpossibly a bug report)
Martin v. L÷wis
25 Jul 2003 07:25:48 +0200
"Mark Hammond" <firstname.lastname@example.org> writes:
> The "best" solution to this probably involves removing Python being
> dependent on the locale - there is even an existing patch for that.
While the feature is desirable, I don't like the patch it all. It
copies the relevant code of Gnome glib, and I
a) doubt it works on all systems we care about, and
b) is too much code for us to maintain, and
c) introduces yet another license (although the true authors
of that code would be willing to relicense it)
It would be better if system functions could be found for a
locale-agnostic atof/strtod on all systems. For example, glibc
has a strtod_l function, which expects a locale_t in addition
to the char*.
It would be good if something similar was discovered for VC. Using
undocumented or straight Win32 API functions would be fine.
Unfortunately, the "true" source of atof (i.e. from conv.obj) is not
shipped with MSVC :-(