D 2020-03-11T10:49:34.818
J icomment The\scode\spage\sof\sconsole\sdoes\sno\smatter,\sneither\sfor\ssupplying\senvironment\sparameters\snor\sfor\sthe\ssubstitution\sof\sthem.\r\nCurrently\stcl\suses\sa\ssystem\sencoding\sto\sconvert\senvironment\sto\sutf-8.\r\nSo\s(unless\sit\sis\sfixed)\syou\scan\sset\sit\sto\ssomething\sbetter\smatching\syour\slocale\s(I\sguess\scp1252)...\sI\sbelieve\scp437\sis\snot\sreally\ssuitable\sfor\sHungarian\slocale.\r\n\r\nNote\sthat\sin\sexample\sbelow\sI\schanged\sconsole\sCP\s(to\sutf-8)\sonly\sin\sorder\sto\ssee\sproper\soutput\sfor\sdifferent\sencodings\s(it\sdoes\snot\saffect\sthe\ssystem\sencoding).\r\n\r\n<code><pre\sstyle="padding-left:10pt">\r\n>\schcp\s65001\r\n>\sset\sTEST=--äöüß--\s&&\stclsh86\r\n%\sputs\s[encoding\ssystem]\\t$env(TEST)\r\ncp1252\s\s--äöüß--\r\n%\sencoding\ssystem\scp437\r\n%\sputs\s[encoding\ssystem]\\t$env(TEST)\r\ncp437\s\s\s--Σ÷ⁿ▀--\r\n%\sencoding\ssystem\scp1251\r\n%\sputs\s[encoding\ssystem]\\t$env(TEST)\r\ncp1251\s\s--дцьЯ--\r\n</pre></code>\r\nAs\syou\scan\ssee\sthe\svalue\sgets\schanged\srelated\sto\sthe\ssystem\sencoding\scurrently\sused.\r\n\r\nThis\sbehavior\scan\s(and\sI\sguess,\smust)\sbe\schanged\ssince\sWindows\shas\sa\swide-char\sfunctions\sto\sobtain\senvironment...<br/>\r\nI\shave\salready\sfixed\sthat\sin\smy\sown\sfork\sand\swould\stake\sa\slook\swhether\sit\scan\sbe\sback-ported\swithout\scompat\sissues.
J login sebres
J mimetype text/x-fossil-wiki
K 8f89e2e059aafa1cff0622d85efb936f48c04411
U sebres
Z 2e3b63e26ce483d5e58a2b156368cb67