.
D 2005-10-21T15:30:53
J assignee msofer
J cmimetype text/plain
J comment When\sthe\s.enc\sfile\sof\sa\sone-byte\sencoding\sspecifies\sthat\s\na\scode\spoint\sis\sunassigned\s(with\s0000),\s[encoding\s\nconvertfrom]\sseems\sto\sreturn\sthe\sUnicode\sof\siso8859-1\s\ninstead\sof\s0.\sman\sTcl_GetEncoding():\s"If\sa\scharacter\sin\s\nthe\sencoding\smaps\sto\sthe\sUnicode\scharacter\s0000,\sit\s\nmeans\sthat\sthe\scharacter\sdoesn't\sactually\sexist.\s"\s\n\nExample:\siso8859-6.enc\scontains\s0000\sfor\s\\xFF\s(last\s\nrow,\slast\sfour\sdigits).\sBut\n\n%\sscan\s[encoding\sconvertfrom\siso8859-6\s\\xFF]\s%c\n255\n\nExpected\sbehavior:\s0\n\nWorkaround\sat\shttp://wiki.tcl.tk/14874\s(reads\senc\sfile\s\npedestrianly,\sexcerpts\sthe\s4-digit\ssubstring\sfrom\sthere...)\n\[email protected]
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 10.\sObjects
J title [encoding\sconvertfrom]\sfalls\sthrough\sto\siso8859-1
J type Bug
K 1334273fffffffffffffffffffffffffffffffff
U nobody
Z 66d96dc2db7c74b99dea1ef522001532