unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* undecided vs utf-8
@ 2010-11-04 22:27 Lars Magne Ingebrigtsen
  2010-11-04 22:40 ` Lars Magne Ingebrigtsen
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-11-04 22:27 UTC (permalink / raw)
  To: emacs-devel

When using erc, it decodes iso-8859-1 fine with the default `undecided'
into encoding.  However, any utf-8 strings are, sort of, just translated
into the same coding system:

(decode-coding-string "u-te-\303\246ff \303\245tte" 'undecided)
=> "u-te-æff åtte"

(decode-coding-string "u-te-\303\246ff \303\245tte" 'utf-8)
=> "u-te-æff åtte"

So, uhm...  Is this meant to be this way?  I know that guessing the
first thing is, well, correct, sort of -- it's valid iso-8859-1,
although very strange.  But it's also valid utf-8.  Shouldn't
`decode-coding-string' prefer utf-8 if it's actually valid?  If it's
valid utf-8, then it's quite likely that it's meant to be utf-8, even
though other coding systems are also possible.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2010-11-05 13:06 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-04 22:27 undecided vs utf-8 Lars Magne Ingebrigtsen
2010-11-04 22:40 ` Lars Magne Ingebrigtsen
2010-11-05  0:02   ` Stefan Monnier
2010-11-05  8:01     ` Eli Zaretskii
2010-11-05  2:01 ` Kenichi Handa
2010-11-05  2:32   ` Lars Magne Ingebrigtsen
2010-11-05  4:42     ` Kenichi Handa
2010-11-05 13:02       ` Lars Magne Ingebrigtsen
2010-11-05  8:09     ` Eli Zaretskii
2010-11-05 13:06       ` Lars Magne Ingebrigtsen
2010-11-05  8:10     ` Eli Zaretskii
2010-11-05 12:28       ` Deniz Dogan
2010-11-05 12:50       ` Lars Magne Ingebrigtsen
2010-11-05  7:56 ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).