From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67458 Path: news.gmane.org!not-for-mail From: Steinar Bang Newsgroups: gmane.emacs.gnus.general Subject: Re: How to force charset iso-8859-1 when posting? Date: Fri, 26 Sep 2008 17:59:16 +0200 Organization: Probably a good idea Message-ID: <87ljxej3u3.fsf@dod.no> References: <877i92n3pb.fsf@dod.no> <87d4itp9po.fsf@marauder.physik.uni-ulm.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1222444805 10240 80.91.229.12 (26 Sep 2008 16:00:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Sep 2008 16:00:05 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M15909@lists.math.uh.edu Fri Sep 26 18:01:01 2008 connect(): Connection refused Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1KjFka-0005ZL-Co for ding-account@gmane.org; Fri, 26 Sep 2008 18:01:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1KjFjH-0001EF-KI; Fri, 26 Sep 2008 10:59:39 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1KjFjG-0001E5-A6 for ding@lists.math.uh.edu; Fri, 26 Sep 2008 10:59:38 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1KjFjD-0000IJ-51 for ding@lists.math.uh.edu; Fri, 26 Sep 2008 10:59:38 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1KjFjI-000638-00 for ; Fri, 26 Sep 2008 17:59:40 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KjFj7-0003h1-D6 for ding@gnus.org; Fri, 26 Sep 2008 15:59:29 +0000 Original-Received: from cm-84.208.246.109.getinternet.no ([84.208.246.109]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Sep 2008 15:59:29 +0000 Original-Received: from sb by cm-84.208.246.109.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Sep 2008 15:59:29 +0000 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 66 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.208.246.109.getinternet.no Mail-Copies-To: never User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:wCzx7vR2nMRh5n9wYJ19r/6ERlM= X-Spam-Score: -3.6 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67458 >>>>> Reiner Steib : > On Tue, Sep 23 2008, Steinar Bang wrote: >> Platform: Ubuntu 8.04, Intel Pentium M >> GNU Emacs 22.1.1 (i486-pc-linux-gnu, GTK+ Version 2.12.9) of 2008-05-03 on terranova, modified by Ubuntu >> No Gnus v0.11 (recent CVS update) >> >> For some reason Gnus have decided to post with utf-8. > Did you change your locale settings? Not intentionally, but perhaps Ubuntu has decided to do it for meg. I don't have a time frame from when this happened. Hm... but I think you've put the finger on the problem. In my ~/.bashrc I do this: # My own specific changes # Norwegian/Swedish/Danish error messages from make, linkers and compilers # are really confusing! unset LANG unset LANGUAGE unset LANGUAGES So when I do "env" from a command line I get nothing interesting. However when I do `M-! env RET' I find LANG=en_US.UTF-8 So emacsen started from the menus don't get those environment changes. Is there a way to override this setting from inside emacs? Will (setenv "LANG" nil) work, I wonder...? Or is there a tidier lispish solution that tells Gnus to ignore the locale? > Does setting mm-coding-system-priorities globally work? I haven't tried yet. I will. >> So... is there a working way to force the charset when posting, for a >> group or set of groups? > I once added such an example to (info "(emacs-mime)Encoding > Customization"), but Katsumi Yamaoka pointed out some > problems/limitations: > I'll study the thread closely. It appears similar to what I tried (and failed) to do with gnus-parameters...? > On Wed, Sep 24 2008, Steinar Bang wrote: >> I've now tried the following in ~/.gnus.el >> (setq message-default-charset 'iso-8859-1) >> But that didn't work either. Gnus still posts with utf-8. > Hardly surprising: "Default charset used in non-MULE Emacsen." Indeed. It was a shot in the dark. Thanx!