<i>UTF-16 Unicode escapes should continue to work in version 9.0</i> status still Open with 3 other changes
by
.
D 2024-08-12T11:02:53.800
J icomment >\san\sresult\sof\s8.x\snot\sfully\ssupporting\snon-BMP\scharacters\r\n\r\nNope,\sTcl\s8.6\swas\ssupporting\snon-BMP\scharacters\sjust\slike\sJava\sdoes\sfor\s29\syears.\sNamely,\scharacter\sliterals\sare\ssupported\svia\s\\uxxxx\\uyyyy\sescape\ssequences,\sand\swhen\soutput\sto\san\sUTF-8\sstream,\sthe\snon-BMP\scharacters\s(2\sstorage\sunits)\sare\sconverted\sto\sUTF-8.\sAnd\syes,\sfor\sprograms\sthat\slook\sat\sthe\sstorage\sunits\sinside\sstrings\sit\smakes\sa\sdifference\swhether\sa\scharacter\sis\sin\sthe\sBMP\s(1\sunit)\sor\soutside\sthe\sBMP\s(2\sunits).\r\n\r\n>\sI\sdon't\sthink\sit\sadvisable\sto\sbreak\sthis\sconsistency.\r\n\r\nYou\sare\sarguing\swith\sthe\sinternal\srepresentation\sof\sstrings.\r\n\r\nI\sam\sarguing\swith\sthe\sexternal\srepresentation,\show\sstring\sliterals\sare\srepresented\sin\sfiles.\r\n\r\nThere\sdoes\sNOT\sneed\sto\sbe\sa\s1:1\scorrespondence.\r\n\r\nAlso\sI\sam\sarguing\swith\sa\smigration\sissue.\sYou\sare\ssaying\s"applications\smust\smove\sto\s9.0"\sbut\sare\snot\sgiving\senough\sthought,\show\sto\smake\smigration\sas\seasy\sas\spossible\sfor\syour\susers.\r\n\r\n>\suse\sUTF-8\sand\sspecify\sthe\s`-encoding\sutf-8`\soption\sinstead\sof\sbeing\sdependent\son\slocales.\r\n\r\nMy\ssoftware\s(GNU\sgettext)\swrites\sthe\smessage\scatalogs,\sthat\scontain\sstring\sliterals,\sbut\sdoes\snot\scontrol\sor\sinfluence\show\sthe\sapplications\sare\srun.\sTherefore\syour\sadvice\sis\snot\sapplicable.
J login bhaible
J mimetype text/plain
K d10d6ddf295864389294b966163a23a58b9a1e72
U bhaible
Z 21481a1a7ff6ca5b4d7c3e92091d1610