tcl7.3-XPG.patch Tcl and XPG localization are currently incompatible. The follow patch offers a solution to this problem. The problem: If setlocale is called to enable XPG localization, the behavior of all functions that convert or format floating point numbers may changed. Tcl stores all floating point numbers as strings and does conversions as needed. If a European numeric locale is specified, then these functions expect the decimal point to be ",". Any floating point number in a script must be in the form "3,14158". To make matters worse, then Tcl returns a floating point number, it attempts to keep it from reverting back to an integer, thus you would end up with "3,14158.0" A solution: When the first Tcl interpreter is created, setlocale is called to force the global use of the "C" locale. This forces all library functions involved in formating and converting floating point numbers to be behave as expected. Two new commands have been added to allow formating and converting numbers using the current locale, they are "nlformat" and "nlscan" ("nl" for native language). They are identical to the format and scan commands, except that they use the current locale for numbers outputted (nlformat) or inputed (nlscan). With a the LANG variable set to a German local, you get the following results: %nlformat %f 3.14159 3,141590 % nlscan 3,14159 %f x 1 % echo $x 3.14159 This patch is available from: harbor.ecn.purdue.edu:~ftp/pub/tcl/extensions/tcl7.3-XPG.patch.gz and ftp.neosoft.com:~ftp/pub/tcl/distrib/tcl7.3-XPG.patch.gz