Gnus development mailing list
 help / color / mirror / Atom feed
* choosing iso-8859-1 over utf-8 for some newsgroups
@ 2014-12-29 16:21 Julien Cubizolles
  2014-12-29 17:35 ` Adam Sjøgren
  0 siblings, 1 reply; 4+ messages in thread
From: Julien Cubizolles @ 2014-12-29 16:21 UTC (permalink / raw)
  To: ding

The newsgroups from the hierarchy proxad.free don't accept utf-8 for
posting. Following the examples from the manual, I added

(add-to-list 'gnus-newsgroup-variables 'mm-coding-system-priorities)
(setq gnus-parameters
      (nconc
       '(("^proxad\\." ;; Free n'accepte pas l'utf-8
          (mm-coding-system-priorities '(iso-8859-1)))
	 ;; (".*" (mm-coding-system-priorities '(utf-8)))
	 )
       gnus-parameters))

to my .gnus.el.

But I still get the following message when trying to post:

--8<---------------cut here---------------start------------->8---
Sending news via news.free.fr using nntp...
441 441 437 utf-8 charset is not allowed in group proxad.free.services.pagesperso 
Couldn't send message via news: 441 441 437 utf-8 charset is not allowed in group proxad.free.services.pagesperso
--8<---------------cut here---------------end--------------->8---

What am I missing ?

Julien.




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

* Re: choosing iso-8859-1 over utf-8 for some newsgroups
  2014-12-29 16:21 choosing iso-8859-1 over utf-8 for some newsgroups Julien Cubizolles
@ 2014-12-29 17:35 ` Adam Sjøgren
  2014-12-29 23:11   ` Julien Cubizolles
  0 siblings, 1 reply; 4+ messages in thread
From: Adam Sjøgren @ 2014-12-29 17:35 UTC (permalink / raw)
  To: ding

Julien writes:

> What am I missing ?

Could you be using characters that cannot be represented in iso-8859-1?
I think Gnus will then go to utf-8.

One thing to try is to temporarily configure Gnus to use iso-8859-1
globally:

  (setq message-default-charset 'iso-8859-1) ;; Not sure if this is used
  (setq mm-coding-system-priorities '(iso-8859-1 utf-8))

To see if it is the localized configuration or the general mechanism
that is failing...


  Best regards,

    Adam

-- 
 "Please note: One of the quirks of our support system        Adam Sjøgren
  is that it always likes to have the "last word"        asjo@koldfront.dk
  regarding a request."




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

* Re: choosing iso-8859-1 over utf-8 for some newsgroups
  2014-12-29 17:35 ` Adam Sjøgren
@ 2014-12-29 23:11   ` Julien Cubizolles
  2015-01-01  6:20     ` Malcolm Purvis
  0 siblings, 1 reply; 4+ messages in thread
From: Julien Cubizolles @ 2014-12-29 23:11 UTC (permalink / raw)
  To: ding

asjo@koldfront.dk (Adam Sjøgren) writes:


> One thing to try is to temporarily configure Gnus to use iso-8859-1
> globally:
>
>   (setq message-default-charset 'iso-8859-1) ;; Not sure if this is used
>   (setq mm-coding-system-priorities '(iso-8859-1 utf-8))

With this setup, I can post to the group, so it's the following that's
not working

--8<---------------cut here---------------start------------->8---
(add-to-list 'gnus-newsgroup-variables 'mm-coding-system-priorities)
(setq gnus-parameters
      (nconc
       ;; Some charsets are just examples!
       '(("^proxad\\." ;; Free n'accepte pas l'utf-8
          (mm-coding-system-priorities '(iso-8859-1 utf-8)))
	 (".*" (mm-coding-system-priorities '(utf-8))))
       gnus-parameters))
--8<---------------cut here---------------end--------------->8---

I guess the ".*" was overriding the "^proxad\\." setting. I'm now using

--8<---------------cut here---------------start------------->8---
(setq mm-coding-system-priorities '(utf8))

(add-to-list 'gnus-newsgroup-variables 'mm-coding-system-priorities)
(setq gnus-parameters
      (nconc
       ;; Some charsets are just examples!
       '(("^proxad\\." ;; Free n'accepte pas l'utf-8
          (mm-coding-system-priorities '(iso-8859-1 utf-8)))
	 ;; (".*" (mm-coding-system-priorities '(utf-8)))
	 )
       gnus-parameters))
--8<---------------cut here---------------end--------------->8---




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

* Re: choosing iso-8859-1 over utf-8 for some newsgroups
  2014-12-29 23:11   ` Julien Cubizolles
@ 2015-01-01  6:20     ` Malcolm Purvis
  0 siblings, 0 replies; 4+ messages in thread
From: Malcolm Purvis @ 2015-01-01  6:20 UTC (permalink / raw)
  To: ding

>>>>> "Julien" == Julien Cubizolles <j.cubizolles@free.fr> writes:

Julien> (add-to-list 'gnus-newsgroup-variables
Julien> 'mm-coding-system-priorities) (setq gnus-parameters
Julien>       (nconc
Julien>        ;; Some charsets are just examples!
Julien>        '(("^proxad\\." ;; Free n'accepte pas l'utf-8
Julien>           (mm-coding-system-priorities '(iso-8859-1 utf-8)))
Julien> 	 (".*" (mm-coding-system-priorities '(utf-8))))
Julien>        gnus-parameters))


Julien> I guess the ".*" was overriding the "^proxad\\." setting.

The clauses in gnus-parameters are searched from first to last, so this
is the expected behaviour.  The info page for  gnus-parameters says:

   All clauses that matches the group name will be used, but the last
   setting “wins”.  So if you have two clauses that both match the group
   name, and both set, say ‘display’, the last setting will override the
   first.

Malcolm

-- 
		     Malcolm Purvis <malcolmp@xemacs.org>



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

end of thread, other threads:[~2015-01-01  6:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-29 16:21 choosing iso-8859-1 over utf-8 for some newsgroups Julien Cubizolles
2014-12-29 17:35 ` Adam Sjøgren
2014-12-29 23:11   ` Julien Cubizolles
2015-01-01  6:20     ` Malcolm Purvis

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).