<i>Use -strict to disable noncharacters</i> status still Closed with 5 other changes
by
.
D 2022-12-02T12:14:29.352
J closedate 2459916.01006194
J closer pointsman
J icomment One\sthing\sis\sprobably\snot\smade\sclear\senough\sby\sme\s(probably\sbecause\sI'm\sin\sfact\stry\sto\snot\ssound\s"a\slittle\ssharp\son\sthe\svocal\slevel",\salthough\ssometimes\sobviously\sfailing).\r\n\r\nWhy\sdo\swe\shave\sthe\sfconfigure\s-strict\smode\sat\sall?\s\r\n\r\nThe\scurrent\sdefault\sis\s"strict"\sin\sthe\ssense\sof\seg.\spython,\sthat\smeans:\sraise\serror\son\ssurrogate.\sAddionally\sthere\sis\s-nocomplain,\spassing\sall\scode-points\sthrough.\sBoth\smodes\sare\sfine\sand\sunderstandable\sto\shave.\r\n\r\nAdditionally\swe\sthe\smode\s-strict\s1\s(which\sis\sa\sbit\sa\sconfusing\sname)\swhich\sraises\serror\son\ssurrogate\sand\snoncharacter.\r\n\r\nThis\ssurely\sis\sa\s"feature"\sin\sthe\ssense\sit\shas\sa\sdefined\sbehaviour.\sBut\swhat\sis\sthe\suse\scase?\sWho\sneeds\sthis?\sIs\sthis\snot\san\smore\sobscure\sthan\sjust\sminor\sfeature?\r\n\r\nEspecially\ssince\sthere\sis\salso\sthe\s[string\sis\sunicode]\sfeature.\sAn\sIMHO\sgross\smisnomer,\sdid\sI\ssaid\sthis\salready?\r\n\r\nIf\ssomeone\swants\sthe\sbehaviour\sthis\sfconfigure\s-strict\s1\sfeature\sprovides\sone\scan\salways\sdo\r\n\r\nif\s{[string\sis\sunicode\s$mystring]}\s{\r\n\s\s\s\sputs\s$chan\s$mystring\r\n}\selse\s{\r\n\s\s\s\s#\sHandle\scase\sof\smystring\swith\snoncharacter\r\n}\r\n\r\ninstead\sof\s\r\n\r\nif\s{[catch\s{puts\s$chan\s$mystring}]}\s{\r\n\s\s\s\s#\sHandle\scase\sof\smystring\swith\snoncharacter\r\n}
J login pointsman
J mimetype text/plain
K 084ab982fea4c32aaab57251eeea0d7c829893a0
U pointsman
Z 364a9577760369e0c25003efb56b23d8