From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/56635 Path: main.gmane.org!not-for-mail From: Kevin Greiner Newsgroups: gmane.emacs.gnus.general Subject: Re: Agent and non-ascii newsgroup names Date: Tue, 09 Mar 2004 08:57:07 -0600 Sender: ding-owner@lists.math.uh.edu Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1078844279 31064 80.91.224.253 (9 Mar 2004 14:57:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 9 Mar 2004 14:57:59 +0000 (UTC) Original-X-From: ding-owner+M5175@lists.math.uh.edu Tue Mar 09 15:57:50 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B0ig1-0005uh-00 for ; Tue, 09 Mar 2004 15:57:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1B0iff-0004lb-00; Tue, 09 Mar 2004 08:57:27 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1B0ifT-0004lV-00 for ding@lists.math.uh.edu; Tue, 09 Mar 2004 08:57:15 -0600 Original-Received: from quimby.gnus.org (quimby.gnus.org [80.91.224.244]) by justine.libertine.org (Postfix) with ESMTP id A15853A003A for ; Tue, 9 Mar 2004 08:57:15 -0600 (CST) Original-Received: from news by quimby.gnus.org with local (Exim 3.35 #1 (Debian)) id 1B0ifS-0002hR-00 for ; Tue, 09 Mar 2004 15:57:14 +0100 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 64 Original-NNTP-Posting-Host: h-66-134-21-51.hstqtx02.covad.net Original-X-Trace: quimby.gnus.org 1078844234 10380 66.134.21.51 (9 Mar 2004 14:57:14 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Tue, 9 Mar 2004 14:57:14 +0000 (UTC) User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:Ul2+LVJ+uRSjjHkdvkUA4ld8EPs= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:56635 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:56635 Per Abrahamsen writes: > After CVS updating, I get this message sometimes, either when getting > new news or entering some newsgroups.=20=20 > > +------- > | These default coding systems were tried: > | iso-latin-1 > | However, none of them safely encodes the target text. > |=20 > | Select one of the following safe coding systems: > | utf-8 raw-text emacs-mule no-conversion > +-------=20 > > Debugging gives me: > > +-------=20 > | Debugger entered--Lisp error: (quit) > | completing-read("Select coding system (default utf-8): " (("utf-8") (= "raw-text") ("emacs-mule") ("no-conversion")) nil t nil nil "utf-8") > | byte-code("..." [standard-output default-coding-system from fill-pref= ix pos coding-system "*Warning*" "No default coding systems to try." "These= default coding systems were tried" " to encode \"" 10 0 "...\"" ":\n" " "= mapcar #[(x) "..." [x princ " "] 2] "\n" fill-region-as-paragraph format = "%s safely encodes the target text,\n" "but it is not recommended for encod= ing text in this context,\n" "e.g., for sending an email message.\n" "Howev= er, none of them safely encodes the target text.\n" "\nSelect the above, or= " "\nSelect " "one of the following safe coding systems:\n" #[(x) "..." [x= princ " "] 2] #[(x) "..." [x symbol-name] 2] completing-read "Select codi= ng system (default %s): " nil t intern codings safe-names name last-coding-= system-specified] 9) > | select-safe-coding-system(1 31 iso-latin-1) > | write-region(1 31 "/home/user_2/abraham/News/agent/nntp/news.net.uni-= c.dk/agent.lib/local" nil 0) > | gnus-agent-save-local() > | gnus-agent-read-and-cache-local("/home/user_2/abraham/News/agent/nntp= /news.gmane.org/agent.lib/local") > | gnus-cache-file-contents("/home/user_2/abraham/News/agent/nntp/news.g= mane.org/agent.lib/local" gnus-agent-file-loading-local gnus-agent-read-and= -cache-local) > | gnus-agent-load-local() > | gnus-agent-get-local("nntp+news.gmane.org:gmane.os.cygwin.announce") > | gnus-agent-possibly-alter-active("nntp+news.gmane.org:gmane.os.cygwin= .announce" (1 . 648) ("nntp+news.gmane.org:gmane.os.cygwin.announce" 3 ((1 = . 647)) ((seen ...)) "nntp:news.gmane.org")) > | gnus-select-newsgroup("nntp+news.gmane.org:gmane.os.cygwin.announce" = nil nil) > | gnus-summary-read-group-1("nntp+news.gmane.org:gmane.os.cygwin.announ= ce" nil nil nil nil nil) > | gnus-summary-read-group("nntp+news.gmane.org:gmane.os.cygwin.announce= " nil nil nil nil nil nil) > | gnus-group-read-group(nil nil nil) > | gnus-topic-read-group(nil) > | call-interactively(gnus-topic-read-group) > +-------=20 > > The content of *temp file* is > > +-------=20 > | dk\.test\.utf8-=E6=F8=E5 324 605 > +-------=20 > > Which I suspect is the problem. Agent is trying to save utf-8 > information in a Latin-1 environment. > > But I have no idea what to do about it. Suggestions? It's my error. I did=20 (with-temp-file file-name (let ((coding-system-for-write ...)) ...)) when I should have done (let ((buffer-file-coding-system ...)) (with-temp-file file-name ...)) With this change, the agent should use raw-text to encode your group names. You can get the patch from CVS. Kevin