.
D 2010-11-26T23:56:14
J assignee kennykb
J cmimetype text/plain
J comment If\sthe\slocale\sis\sset\sup\sto\snot\sbe\sLC_NUMERIC=C,\sTcl_PrintDouble\scan\sgive\sodd\sbehavior.\n\nI\sam\sable\sto\sreproduce\sthis\sby\susing\sa\sFrench\sregional\slocale\s(Control\sPanel\s->\sRegional\sLocale\sand\sSettings),\sstarting\spython\swith\stkinter,\swhere\sthey\shave\scalled\n\nlocale.setlocale(locale.LC_ALL,\s'')\n\nbut\sthis\scould\soccur\sin\sother\sinstances\sof\sTcl\sembedded.\s\sWhen\sin\sthis\scase,\sTcl_PrintDouble\scan\sproduce\sodd\sresults:\n\n(arelle)\s61\s%\sexpr\s2-0.1\n1,8999999999999999.0\n(arelle)\s62\s%\sset\stcl_precision\s5\n5\n(arelle)\s63\s%\sexpr\s2-0.1\n1,9.0\n\nThis\sis\sbecause\sthe\s.0\stack-on\sis\slocale-ignorant.
J foundin obsolete:\s8.6b1.1
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter hobbs
J subsystem 10.\sObjects
J title Tcl_PrintDouble\snot\slocale-safe
J type Bug
K 3120139fffffffffffffffffffffffffffffffff
U hobbs
Z c8486a364a8deb7e9923457d72c6b1cf