| Deutsch English Français Italiano |
|
<20250108202851.4dbb65c8@lud1.home> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Luc <luc@sep.invalid> Newsgroups: comp.lang.tcl Subject: Re: Tcl9: source files are interpreted as utf-8 by default Date: Wed, 8 Jan 2025 20:28:51 -0300 Organization: A noiseless patient Spider Lines: 36 Message-ID: <20250108202851.4dbb65c8@lud1.home> References: <vjhiar$3f9go$1@dont-email.me> <vljmj2$29vdo$1@dont-email.me> <20250107160810.07ddbbe6@lud1.home> <vlllha$2nvqo$2@dont-email.me> <20250108113519.42eb3746@lud1.home> <20250108114254.7f56f049@lud1.home> <vlm45q$2qvor$2@dont-email.me> <20250108124055.15c92a05@lud1.home> <vlmb6q$2sblj$1@dont-email.me> <20250108162339.7c04023e@lud1.home> <vlmjs8$2tu2l$1@dont-email.me> <vlmulc$3025m$1@dont-email.me> <vln01p$3025n$2@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Date: Thu, 09 Jan 2025 00:28:52 +0100 (CET) Injection-Info: dont-email.me; posting-host="7bdff13c850ce1be844b69f0292685e7"; logging-data="3171128"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18sKFc1y98RiieJLn2FmV7FiBc+69qPK4A=" Cancel-Lock: sha1:Yrh7qMOl6xbfrZ3ZR+OHwcfuicY= Bytes: 2753 On Wed, 8 Jan 2025 22:53:40 -0000 (UTC), Rich wrote: >> Won't that cause problems if the system is iso-8859-1? > >Only if windows tries to interpret the UTF-8 data as iso-8859 >characters. But as far as the Tcl scripts go, once the scripts are >UTF-8, and [source] is using UTF-8 to read them, the fact that windows >system might be iso-8859 is irrelivant. I was thinking that if the Windows user edits the file on Windows, maybe Windows will write it as iso-8859. I honestly don't know. >8.6.6 handled Unicode fine. In fact, 8.5 handled Unicode (so long as >one stuck to the BMP) just fine. I am positive that 8.6.6 only partially supports Unicode. I found many characters that would not display correctly on a text widget and would be saved as garbled content if captured in the widget and written to file. I even had problems with glob and other commands when applied to some file names. For example, some html page I had downloaded from somewhere had something to do with countries and the page title had Unicode flags in the title, so the title and the flags carried over to the file name when I saved it. The complete implementation of Unicode begins in 8.6.10 or 8.6.13, I can't remember which, I think it's 8.6.13. I know that is specifically mentioned in a wikit page, I can't remember which one but that is not terribly relevant right now. -- Luc >>