All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@stusta.de>
To: Willy Tarreau <w@1wt.eu>
Cc: Jan Engelhardt <jengelh@linux01.gwdg.de>,
	Russell King <rmk+lkml@arm.linux.org.uk>,
	David Woodhouse <dwmw2@infradead.org>,
	Tilman Schmidt <tilman@imap.cc>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: OT: character encodings (was: Linux 2.6.20-rc4)
Date: Mon, 8 Jan 2007 02:45:06 +0100	[thread overview]
Message-ID: <20070108014506.GS20714@stusta.de> (raw)
In-Reply-To: <20070108011441.GG435@1wt.eu>

On Mon, Jan 08, 2007 at 02:14:41AM +0100, Willy Tarreau wrote:
> On Mon, Jan 08, 2007 at 02:03:37AM +0100, Adrian Bunk wrote:
> > On Mon, Jan 08, 2007 at 01:38:57AM +0100, Willy Tarreau wrote:
> > > On Mon, Jan 08, 2007 at 12:37:50AM +0100, Adrian Bunk wrote:
> > > > On Sun, Jan 07, 2007 at 09:48:34PM +0100, Willy Tarreau wrote:
> > > > > On Sun, Jan 07, 2007 at 08:11:38PM +0100, Jan Engelhardt wrote:
> > > > > > 
> > > > > > On Jan 7 2007 17:06, Russell King wrote:
> > > > > > >On Mon, Jan 08, 2007 at 12:29:05AM +0800, David Woodhouse wrote:
> > > > > > >
> > > > > > >$ git log | head -n 1000 | tail -n 200 > o
> > > > > > >$ file -i o
> > > > > > >o: text/plain; charset=us-ascii
> > > > > > >$ git log | head -n 1000 | tail -n 300 > o
> > > > > > >$ file -i o
> > > > > > >o: text/plain; charset=us-ascii
> > > > > > >$ git log | head -n 1000 | tail -n 400 > o
> > > > > > >$ file -i o
> > > > > > >o: text/plain; charset=utf-8
> > > > > > 
> > > > > > I am inclined to say that "file" does not count, because it tries to guess an
> > > > > > ambiguous mapping from bytes to character set. Even more, file should be
> > > > > > _unable at all_ to distinguish an iso-8859-1 from an iso-8859-2 (or worse: 15)
> > > > > > file. This program is soo... forget it, it's not an argument. It works well for
> > > > > > headerful files, but text files don't really contain one. The next best thing
> > > > > > would be html, with a proper <meta http-equiv=Content> tag.
> > > > > 
> > > > > The stupidity from the start up with those character sets is that they
> > > > > consider that a whole file is written with a given set. In fact, the
> > > > > charset should apply to characters themselves. At least, the
> > > > > quoted-printable, non-human friendly, encoding was the least stupid.
> > > > 
> > > > I doubt doing this would really be worth the effort.
> > > > 
> > > > In the 21st century, people should simply use UTF-8.
> > > > 
> > > > > Now that UTF8 comes everywhere, everyone receives tons of mangled mails,
> > > > > and even mailers which correctly support UTF8 and use it by default manage
> > > > > to shoot themselves in the foot when they reply to, or forward a mail. The
> > > > > system is completely broken because limited by design, and we have to learn
> > > > > to live with this brokenness.
> > > > 
> > > > Only if MUAs have broken charset support or don't set a correct 
> > > > "charset" header in the mails they are sending.
> > > > 
> > > > If some software still can't handle UTF-8 correctly more than 10 years 
> > > > after it was introduced, that's not a brokenness you can blame on UTF-8.
> > > 
> > > I'm not blaming UTF-8 per se, but people who still believe in encoding
> > > *whole documents*. Copy-paste, text insertion, git output, etc... everything
> > > has a good reason not to be in the same encoding as what your MUA believes.
> > 
> > How would you do this technically in a way that it's significantely 
> > easier than simply finishing the UTF=8 transition?
> 
> In how many decades do you think the transition will be finished ?
> 
> > > If major MUAs still have problems with UTF-8 10 years after it was introduced,
> > > it's clearly the proof of a flaw in the initial design. And I'm not even
> > > discussing the stupidity which requires that you read a whole text to get
> > > its number of characters !
> > 
> > The only major MUA not supporting UTF-8 is Eudora.
> > 
> > And if you are talking about buggy old pine, in the latest development 
> > version [1] it does not only become open source, it also got some 
> > working Unicode support.
> 
> No, I'm not speaking about "not supporting", but "having problems". Every
> one of us has already received mails from Thunderbird, Outlook, Notes, etc...
> with erroneously encoded characters because of this :
> 
>   - an UTF8 MUA sends a mail to a non-UTF8 aware one.

"non-UTF8 aware one" = Eudora (BTW: there's no Linux version)

>   - this last one only sees double chars. When it wants to forward the mail
>     to someone else, it keeps the chars verbatim, and sets the encoding type
>     to its own, something like iso8859-1 for instance.

Let's not base everything on the one broken non-Linux MUA,

>   - the final MUA, which is UTF8-aware, is very happy to detect lots of UTF8
>     combinations in the forwarded mail and decides that everything in it is
>     UTF8, then you get lots of chars mangled in the mail, in the middle of
>     UTF8 combinations. Then, this crappy mail can be forwarded as long as
>     you want between UTF8 MUAs, they will all apply heuristics and to the
>     wrong thing : consider the *whole* document with *one* type.

Which MUAs exactly do ignore the "charset" of an email and try their own 
guessing instead?

Or which MUAs exactly do not set a "charset" so that the receiving MUA 
might have a reason for guessing?

> What I find even funnier is when, for no apparent reason, the same MUA is used
> on both ends and the contents get mangled because the sender copies a portion
> of text from somewhere else.

With which MUA and which charset settings of the users?

> Anyway, I don't want to follow up on this thread, it's *highly* off-topic here.

People want their names written correctly in changelogs.

It is therefore on-topic if the result is something like "kernel 
maintainers shouldn't be using Eudora" or "kernel maintainers using pine 
should upgrade to Alpine" or something similar.

> Cheers,
> Willy

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


  reply	other threads:[~2007-01-08  1:45 UTC|newest]

Thread overview: 130+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-07  6:19 Linux 2.6.20-rc4 Linus Torvalds
2007-01-07 10:56 ` Jan Engelhardt
2007-01-07 11:44   ` Russell King
2007-01-07 13:06     ` OT: character encodings (was: Linux 2.6.20-rc4) Tilman Schmidt
2007-01-07 15:13       ` David Woodhouse
2007-01-07 15:38         ` Russell King
2007-01-07 16:29           ` David Woodhouse
2007-01-07 17:06             ` Russell King
2007-01-07 19:11               ` Jan Engelhardt
2007-01-07 19:20                 ` Russell King
2007-01-07 20:48                 ` Willy Tarreau
2007-01-07 23:37                   ` Adrian Bunk
2007-01-08  0:38                     ` Willy Tarreau
2007-01-08  1:03                       ` Adrian Bunk
2007-01-08  1:14                         ` Willy Tarreau
2007-01-08  1:45                           ` Adrian Bunk [this message]
2007-01-08  6:52                         ` Jan Engelhardt
2007-01-08  8:02                           ` Adrian Bunk
2007-01-08  1:32                       ` OT: character encodings Tilman Schmidt
2007-01-08  1:59                         ` Adrian Bunk
2007-01-08 19:53                       ` OT: character encodings (was: Linux 2.6.20-rc4) Valdis.Kletnieks
2007-01-07 19:29               ` OT: character encodings Tilman Schmidt
     [not found]                 ` <20070107195051.GF21133@flint.arm.linux.org.uk>
     [not found]                   ` <45A17645.1030905@imap.cc>
2007-01-08  1:53                     ` David Woodhouse
2007-01-07 18:21           ` OT: character encodings (was: Linux 2.6.20-rc4) Alan
2007-01-07 19:12             ` Jan Engelhardt
2007-01-07 22:30               ` Alan
2007-01-08  1:22                 ` Jan Engelhardt
2007-01-08 20:17                   ` Jan Engelhardt
2007-01-08 22:00                     ` Ken Moffat
2007-01-08 23:21                       ` Jan Engelhardt
2007-01-08 23:34                         ` Eberhard Moenkeberg
2007-01-08 16:14                 ` Pavel Machek
2007-01-08 22:17                   ` Tim Pepper
2007-01-08 23:30                     ` Jan Engelhardt
2007-01-07 19:17             ` Russell King
2007-01-07 19:58               ` Robin Rosenberg
2007-01-07 20:05               ` Dave Jones
2007-01-07 20:15                 ` Sean
2007-01-07 20:40                   ` Jan Engelhardt
2007-01-07 21:07                     ` Xavier Bestel
2007-01-08  4:42                 ` David Woodhouse
2007-01-08  1:40               ` Horst H. von Brand
2007-01-07 13:23   ` Linux 2.6.20-rc4 Alan
2007-01-07 12:15 ` Akula2
2007-01-07 12:55   ` Russell King
2007-01-07 13:38     ` Akula2
2007-01-07 13:53       ` Willy Tarreau
2007-01-07 14:23         ` Akula2
2007-01-07 20:57 ` Peter Osterlund
2007-01-07 21:04   ` Peter Osterlund
2007-01-08 15:50     ` Dmitry Torokhov
2007-01-07 22:50   ` Linus Torvalds
2007-01-08  1:00     ` David Miller
2007-01-08  6:38       ` Peter Osterlund
2007-01-08 20:49       ` Peter Osterlund
2007-01-08 21:52         ` David Miller
2007-01-08 22:33     ` Patrick McHardy
2007-01-08 22:33       ` Patrick McHardy
2007-01-08 23:02       ` Peter Osterlund
2007-01-08 23:12         ` Linus Torvalds
2007-01-09  3:42           ` Adrian Bunk
2007-01-09  7:39           ` David Miller
2007-01-09  7:39             ` David Miller
2007-01-07 21:22 ` Gene Heskett
2007-01-08  0:22 ` 2.6.20-rc4: known unfixed regressions Adrian Bunk
2007-01-08  0:22   ` Adrian Bunk
2007-01-08  1:20   ` Bernhard Schmidt
2007-01-08  1:20     ` Bernhard Schmidt
2007-01-08  0:25 ` 2.6.20-rc4: known regressions with patches available Adrian Bunk
2007-01-08  0:25   ` Adrian Bunk
2007-01-08  0:33   ` [Bluez-devel] " Marcel Holtmann
2007-01-08  0:33     ` Marcel Holtmann
2007-01-08  0:33     ` Marcel Holtmann
2007-01-08 14:50 ` Linux 2.6.20-rc4 Mariusz Kozlowski
2007-01-08 14:50   ` Mariusz Kozlowski
2007-01-08 14:58   ` Sylvain Munaut
2007-01-08 14:58     ` Sylvain Munaut
2007-01-08 15:03     ` Mariusz Kozlowski
2007-01-08 15:03       ` Mariusz Kozlowski
2007-01-08 19:11     ` Jean Delvare
2007-01-08 19:11       ` Jean Delvare
2007-01-09  0:38     ` Benjamin Herrenschmidt
2007-01-09  0:38       ` Benjamin Herrenschmidt
2007-01-09  0:56       ` Greg KH
2007-01-09  0:56         ` Greg KH
2007-01-09  2:05         ` Benjamin Herrenschmidt
2007-01-09  2:05           ` Benjamin Herrenschmidt
2007-01-09  7:04           ` David Woodhouse
2007-01-09  7:04             ` David Woodhouse
2007-01-09  7:04             ` Sylvain Munaut
2007-01-09  7:04               ` Sylvain Munaut
2007-01-09  9:04             ` Benjamin Herrenschmidt
2007-01-09  9:04               ` Benjamin Herrenschmidt
2007-01-09  7:14           ` Sylvain Munaut
2007-01-09  7:14             ` Sylvain Munaut
2007-01-09  7:28             ` David Woodhouse
2007-01-09  7:28               ` David Woodhouse
2007-01-09  9:08               ` Benjamin Herrenschmidt
2007-01-09  9:08                 ` Benjamin Herrenschmidt
2007-01-09  9:07             ` Benjamin Herrenschmidt
2007-01-09  9:07               ` Benjamin Herrenschmidt
2007-01-09  7:18           ` Greg KH
2007-01-09  7:18             ` Greg KH
2007-01-09  5:25 ` 2.6.20-rc4: known unfixed regressions (v2) Adrian Bunk
2007-01-09  5:25   ` Adrian Bunk
2007-01-09 17:58   ` Linus Torvalds
2007-01-09 18:08     ` Malte Schröder
2007-01-09 18:30       ` Linus Torvalds
2007-01-11  0:24         ` Vladimir V. Saveliev
2007-01-11  1:00           ` Nick Piggin
2007-01-11 13:12             ` Vladimir V. Saveliev
2007-01-11 23:53               ` Nick Piggin
2007-01-09 20:28     ` Adrian Bunk
2007-01-09  5:51 ` 2.6.20-rc4: known regressions with patches (v2) Adrian Bunk
2007-01-09  5:51   ` Adrian Bunk
2007-01-11  5:10 ` 2.6.20-rc4: known unfixed regressions (v3) Adrian Bunk
2007-01-11  6:43   ` Nick Piggin
2007-01-11  8:45     ` Adrian Bunk
2007-01-11 10:21       ` Jiri Kosina
2007-01-11 10:54         ` Adrian Bunk
2007-01-11 11:08           ` CIJOML
     [not found] ` <Pine.LNX.4.64.0701062216210.3661-AgDkxUvNf0y7TbgM5vRIOg@public.gmane.org>
2007-01-11  5:13   ` 2.6.20-rc4: known regressions with patches (v3) Adrian Bunk
2007-01-11  5:13     ` Adrian Bunk
2007-01-11 21:39     ` David Chinner
2007-01-11 22:02       ` Andrew Morton
2007-01-11 23:05         ` David Chinner
  -- strict thread matches above, loose matches on Subject: below --
2007-01-08 10:13 OT: character encodings (was: Linux 2.6.20-rc4) Nicolas Mailhot
2007-01-08 10:24 Nicolas Mailhot
2007-01-08 10:44 ` Alan
2007-01-08 10:44   ` Nicolas Mailhot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070108014506.GS20714@stusta.de \
    --to=bunk@stusta.de \
    --cc=dwmw2@infradead.org \
    --cc=jengelh@linux01.gwdg.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rmk+lkml@arm.linux.org.uk \
    --cc=tilman@imap.cc \
    --cc=w@1wt.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.