.
D 2005-05-13T06:51:31
J assignee dgp
J cmimetype text/plain
J comment I\sthink\sI\sfound\sa\sbug\sin\sTcl\sthat\sprevents\sa\stclkit\sto\nfind\sand\suse\sthe\sproper\ssystem\sencoding\sin\sa\nnon-English\slocale.\n\nOf\scourse,\sit\sis\snot\sa\sbug\sfor\sTcl\sitself,\sbecause\sthis\nfunction\nis\sreally\scalled\sjust\sonce\son\sstartup\s(and\sdoes\sits\sjob).\n\nBut\stclkit\shas\sto\scall\sit\stwice\s---\son\sstartup\sand\safter\nmounting\sVFS\swhich\scontains\sencoding\sfiles.\n\nA\spatch\sto\sunix/tclUnixInit.c:\n-----------------PATCH---------------------\n---\stclUnixInit.c\s\s\s\s\s\s\sThu\sMay\s12\s20:18:51\s2005\n+++\stclUnixInit.c.new\s\s\sThu\sMay\s12\s20:14:03\s2005\n@@\s-485,7\s+485,8\s@@\n\svoid\n\sTclpSetInitialEncodings()\n\s{\n-\s\s\s\sif\s(libraryPathEncodingFixed\s==\s0)\s{\n+\n+/*\s\s\s\sif\s(libraryPathEncodingFixed\s==\s0)\s{\s*/\n\s\s\s\s\s\s\s\sCONST\schar\s*encoding\s=\sNULL;\n\s\s\s\s\s\s\s\sint\si,\ssetSysEncCode\s=\sTCL_ERROR;\n\s\s\s\s\s\s\s\sTcl_Obj\s*pathPtr;\n@@\s-647,6\s+648,7\s@@\n\s\s\s\s\s\s\s\s\s*\sdependent\sbehavior.\n\s\s\s\s\s\s\s\s\s*/\n\n+\s\s\s\s\s\s\s\sif\s(libraryPathEncodingFixed\s==\s0)\s{\n\s\s\s\s\s\s\s\ssetlocale(LC_NUMERIC,\s"C");\n\n\s\s\s\s\s\s\s\s/*\n-----------------PATCH---------------------\n\nThis\sproblem\sreally\sneeds\sto\sbe\sfixed\s---\sit\smakes\stclkit\s\npractically\sunusable\sfor\snon-English\susers.\sAnd\sI\sdon't\nsee\sa\sway\show\sTcl\swill\ssuffer\sfrom\sit.\n
J foundin obsolete:\s8.4.9
J priority 5\sMedium
J resolution None
J status Open
J submitter yaroslav1
J subsystem 38.\sInit\s-\sLibrary\s-\sAutoload
J title TclpSetInitialEncodings\sworks\sonly\sonce\son\sUnix
J type Bug
K 1201171fffffffffffffffffffffffffffffffff
U yaroslav1
Z ee4f40dcefba250adc5d922d7256cf29