Gnus development mailing list
 help / color / mirror / Atom feed
From: Lloyd Zusman <ljz@asfast.com>
To: ding@gnus.org
Subject: Re: Guidance concerning something I want to do with charsets
Date: Wed, 19 Nov 2008 15:28:07 -0500	[thread overview]
Message-ID: <m2vdujihpk.fsf@asfast.com> (raw)
In-Reply-To: <87k5azh9vw.fsf@marauder.physik.uni-ulm.de>

Reiner Steib <reinersteib+gmane@imap.cc> writes:

> On Wed, Nov 19 2008, Lloyd Zusman wrote:
>
>> [ ... ]
>>
>>
>>      if Content-Type specifies UTF-8
>>        use UTF-8 as the charset
>>      else
>>        use ISO-8859-1 as the charset
>
> That is the normal behavior of Gnus (and any other MIME-aware MUA).
> If you have problems with that, there's either a bug in your config
> (e.g. using Emacs in unibyte mode) or in Gnus.

Well, I have indeed been using Emacs in unibyte mode. Ages ago (well,
some time in the 1990's, I think), I started using that setting. Based
on what you're saying here, I guess that's obsolete.

I send emails to people who seem to be limited to unibyte ISO-8859-1
messages and not UTF-8. Perhaps their mailers are primitive and ignore
the Content-Type header ... I'm not sure why.  This is the reason for my
having set this default, originally.

I'm now trying to catch up on my knowledge of charsets, so please
forgive my ignorance about this topic. I can see from what you wrote
below that there's a way run Emacs in multibyte mode by default but to
use ISO-8859-1 for dealing with messages 


> I can't think of a common use case for the `nil' case beside incorrect
> charset labelling of articles (e.g. declaring iso-8859-1 when it is
> utf-8).  For this, you can use
> `gnus-summary-show-article-charset-alist' and the numerical prefix for
> `g':

Yes, I do see incorrect charset labeling (or missing labeling
altogether) in some articles and email messages.

Is there a way to do this without the numerical prefix? I.e., some sort
of hook that I can use to match the sender or newsgroup against a
pattern and then force the buffer to be encoded via unibyte ISO-8859-1
if the pattern matches?


> ,----[ (info "(gnus)Paging the Article") ]
> | `A g'
> | `g'
> |      [ ... etc. ... ]
> `----
>
>> 4. In all cases, the charset selected via Items 1, 2, and 3 should be
>>    used both for decoding the message for display *and* for encoding my
>>    replies and follow-ups.
>
> Why do you think that this is useful?

Well, maybe the only reason I think this way is due to ignorance. Some
of the recipients of my email messages and readers of my newsgroup posts
(in a private, very small news server ... maybe 20 people) do not seem
to be able to read UTF-8 encodings. This is why I want to force
ISO-8859-1 when writing to these people or posting in that private
newsgroup, whether these are replies or whether I'm initiating the
message.


>> Is this a common set of tasks which are easy to perform in gnus, or am I
>> trying to do something that is as idiosyncratic as many of the other
>> tasks that I tend to want to perform?
>
> Gnus already does The Right Thing by default.  You can specify which
> charsets to prefer via `mm-coding-system-priorities':


OK. I think I understand. I'll dig into this further, and I'll see if I
can fix my emacs so as not to use unibyte by default any longer, and
then to make use of the features you have described.

All that remains is for me to figure out how to write the hook that I
mentioned above.

Thank you very much.


-- 
 Lloyd Zusman
 ljz@asfast.com
 God bless you.




      reply	other threads:[~2008-11-19 20:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-19  2:27 Lloyd Zusman
2008-11-19 18:02 ` Reiner Steib
2008-11-19 20:28   ` Lloyd Zusman [this message]

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=m2vdujihpk.fsf@asfast.com \
    --to=ljz@asfast.com \
    --cc=ding@gnus.org \
    /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 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 NNTP newsgroup(s).