Re: Tcl9: source files are interpreted as utf-8 by default

Liste des GroupesRevenir à cl tcl 
Sujet : Re: Tcl9: source files are interpreted as utf-8 by default
De : rich (at) *nospam* example.invalid (Rich)
Groupes : comp.lang.tcl
Date : 09. Jan 2025, 16:37:22
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vloqfi$3e04k$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14
User-Agent : tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Uwe Schmitz <schmitzu@mail.de> wrote:
Rich,
 
at first, thank you very much for explaining my situation very well.
I couldn't have argued better ;-)
 
Let me add a note on why characters outside the iso7-bit range
cannot always be replaced by the \uXXXX notation:
Comments.

If you like to write comments in your native language it
should be no very readable to code e.g. german umlauts as \uXXXX.
Especially if you extract the program documentation out of from
the source code in a kind of “literate programming” (which I often
do), the use of \u notation is very cumbersome.

This was my suspision.  In my case, the non-ascii characters are not
part of the language (English in my case) script, they are extras (such
as arrows/lines or the degree symbol, etc.) and so the script is 99.9%
readable, with a few \uXXXX sometimes occurring.

But writing a string out where every third character is \uXXXX makes
for a very human unreadable string (be it a comment, or a string for
the code to use).

If you develop on Linux (or have a Linux machine available) you may
wish to begin experimenting with using iconv to convert some scripts to
UTF-8 encoding.  If things work properly, it might be best to start
that conversion (even if you do it slowly over time) sooner rather than
later.  It will be work, but it is work that you are likely going to
have to perform at some point anyway.

Date Sujet#  Auteur
13 Dec 24 * Tcl9: source files are interpreted as utf-8 by default40Uwe Schmitz
13 Dec 24 +* Re: Tcl9: source files are interpreted as utf-8 by default2Harald Oehlmann
13 Dec 24 i`- Re: Tcl9: source files are interpreted as utf-8 by default1Uwe Schmitz
7 Jan 25 `* Re: Tcl9: source files are interpreted as utf-8 by default37Uwe Schmitz
7 Jan 25  +* Re: Tcl9: source files are interpreted as utf-8 by default5Harald Oehlmann
8 Jan 25  i`* Re: Tcl9: source files are interpreted as utf-8 by default4Uwe Schmitz
8 Jan 25  i `* Re: Tcl9: source files are interpreted as utf-8 by default3Harald Oehlmann
8 Jan 25  i  `* Re: Tcl9: source files are interpreted as utf-8 by default2Harald Oehlmann
8 Jan 25  i   `- Re: Tcl9: source files are interpreted as utf-8 by default1Uwe Schmitz
7 Jan 25  `* Re: Tcl9: source files are interpreted as utf-8 by default31Luc
8 Jan 25   `* Re: Tcl9: source files are interpreted as utf-8 by default30Uwe Schmitz
8 Jan 25    `* Re: Tcl9: source files are interpreted as utf-8 by default29Luc
8 Jan 25     `* Re: Tcl9: source files are interpreted as utf-8 by default28Luc
8 Jan 25      `* Re: Tcl9: source files are interpreted as utf-8 by default27Uwe Schmitz
8 Jan 25       `* Re: Tcl9: source files are interpreted as utf-8 by default26Luc
8 Jan 25        `* Re: Tcl9: source files are interpreted as utf-8 by default25Rich
8 Jan 25         `* Re: Tcl9: source files are interpreted as utf-8 by default24Luc
8 Jan 25          `* Re: Tcl9: source files are interpreted as utf-8 by default23Rich
8 Jan 25           +* Re: Tcl9: source files are interpreted as utf-8 by default12Luc
8 Jan 25           i+- Re: Tcl9: source files are interpreted as utf-8 by default1ted@loft.tnolan.com (Ted Nolan
8 Jan 25           i`* Re: Tcl9: source files are interpreted as utf-8 by default10Rich
9 Jan 25           i `* Re: Tcl9: source files are interpreted as utf-8 by default9Uwe Schmitz
9 Jan 25           i  `* Re: Tcl9: source files are interpreted as utf-8 by default8Rich
9 Jan 25           i   +* Re: Tcl9: source files are interpreted as utf-8 by default6Luc
10 Jan 25           i   i`* Re: Tcl9: source files are interpreted as utf-8 by default5Rich
10 Jan 25           i   i `* Re: Tcl9: source files are interpreted as utf-8 by default4Luc
10 Jan 25           i   i  `* Re: Tcl9: source files are interpreted as utf-8 by default3eric
10 Jan 25           i   i   `* Re: Tcl9: source files are interpreted as utf-8 by default2Luc
10 Jan 25           i   i    `- Re: Tcl9: source files are interpreted as utf-8 by default1Rich
10 Jan 25           i   `- Re: Tcl9: source files are interpreted as utf-8 by default1Uwe Schmitz
8 Jan 25           `* Re: Tcl9: source files are interpreted as utf-8 by default10saito
9 Jan 25            `* Re: Tcl9: source files are interpreted as utf-8 by default9Rich
9 Jan 25             `* Re: Tcl9: source files are interpreted as utf-8 by default8Luc
9 Jan 25              `* Re: Tcl9: source files are interpreted as utf-8 by default7Rich
9 Jan 25               `* Re: Tcl9: source files are interpreted as utf-8 by default6Luc
9 Jan 25                +* Re: Tcl9: source files are interpreted as utf-8 by default4Uwe Schmitz
9 Jan 25                i`* Re: Tcl9: source files are interpreted as utf-8 by default3Harald Oehlmann
10 Jan 25                i `* Re: Tcl9: source files are interpreted as utf-8 by default2Uwe Schmitz
10 Jan 25                i  `- Re: Tcl9: source files are interpreted as utf-8 by default1Harald Oehlmann
9 Jan 25                `- Re: Tcl9: source files are interpreted as utf-8 by default1Rich

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal