Skip to content
Tcl Source Code Artifact [b22335c595]
Login

Artifact [b22335c595]

Artifact b22335c5957ccf8c0aaaea6f4b0ca2e5dc704168b28241e8a3f36b1f76b4e6ca:

Ticket change [b22335c595] - New ticket [4b80f92abd6c4067|4b80f92abd] <i>cannot transform using unicode (maybe)</i>. by anonymous on 2024-01-17 07:31:47.
D 2024-01-17T07:31:47.495
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment First\soff,\sthis\smay\sor\smay\snot\sbe\sa\sbug.\sI\sjust\sdon't\sknow\senough\sabout\schannel\stransforms\sto\stell.\sI\smay\sbe\sjust\scoding\sit\sincorrectly.\r\n\r\nThe\sproblem\sis\sI\scan't\sget\sit\sto\shandle\sunicode.\sThere\sis\sa\sfile\son\sthe\swiki,\shere,\r\n\r\nhttps://wiki.tcl-lang.org/page/console+for+Unix\r\n\r\nI\sam\strying\sto\sget\sthis\sto\swork\son\sLinux\sand\shave\swritten\sTIP\s561\sfor\sit.\sI\sthought\sthe\scode\swas\sworking\sand\sonly\sneeded\sto\sbe\ssupported\sby\sthe\score\sgroup.\sHowever,\sthe\scode\sdoes\snot\swork\swhen\sone\sdoes\sa\sputs\s"\\uxxxx"\sbut\sinstead\soutputs\s3\sgarbage\scharacters.\sI\sthought\sthe\sproblem\swas\sin\sthe\sinitialize\sfconfigure,\sthat\swas\sdoing\sthe\sline\sbelow\sthat\sI've\scommented\sout\sand\sreplaced\swith\sthe\sutf-8\sencoding:\r\n\r\n\s\s\s\s\s\s\s\sproc\sinitialize\s{what\sx\smode}\s\s\s\s{\r\n#\s\s\s\s\s\s\s\s\s\s\sfconfigure\s$what\s-buffering\snone\s-translation\s\sbinary\r\n\s\s\s\s\s\s\s\s\s\s\s\sfconfigure\s$what\s-buffering\snone\s-encoding\sutf-8\r\n\s\s\s\s\s\s\s\s\s\s\s\sinfo\sprocs\r\n\s\s\s\s\s\s\s\s}\r\n\r\nCould\ssomeone\sknowledgeable\sabout\sthis\stake\sa\slook.\sThis\scode\sis\snormally\ssourced\sas\sin,\r\n\r\n>\swish8.6\s(can't\srun\sas\sis\son\s9.0)\r\n%\ssource\sconsole.tcl\r\n%\sputs\s"\\u277D"\r\n\r\nThis\sshould\soutput\sa\sunicode\s8-ball.\r\n\r\nThanks,\sif\sthis\sis\sa\sbug\sand\scan\sbe\sfixed,\sit\swould\sreally\shelp.\sIf\sit's\san\serror\sin\smy\scode,\sor\sjust\ssomething\sthe\schannel\stransforms\scan't\shandle,\sI'd\sappreciate\sknowing.\r\n\r\nNote,\sthis\scode\sas\sit\sis\swill\sfail\son\s9.0\stotally\swhich\sI\scan\sfix\seasily\sby\schanging\ssome\sof\sthe\sprivate\scalls\sto\s::tk::ConsoleOutput\setc.\r\n\r\nSo\sif\syou\stest\sit,\splease\sdo\sso\son\stcl/tk\s8.6\snot\s9.0.
J foundin 8.6
J is_private 0
J login anonymous
J priority 5\sMedium
J private_contact 76b9bed6c91bf8b8d5598832d193758ad939382d
J resolution None
J severity Minor
J status Open
J submitter anonymous
J subsystem 26.\sChannel\sTransforms
J title cannot\stransform\susing\sunicode\s(maybe)
J type Bug
K 4b80f92abd6c4067859f325ec77b5ca1a796a2a8
U anonymous
Z d509f6491f2352e21a76db064e729058