Gnus development mailing list
 help / color / mirror / Atom feed
* Agent and non-ascii newsgroup names
@ 2004-03-09 11:16 Per Abrahamsen
  2004-03-09 14:57 ` Kevin Greiner
  0 siblings, 1 reply; 3+ messages in thread
From: Per Abrahamsen @ 2004-03-09 11:16 UTC (permalink / raw)


After CVS updating, I get this message sometimes, either when getting
new news or entering some newsgroups.  

+-------
| These default coding systems were tried:
|   iso-latin-1
| However, none of them safely encodes the target text.
| 
| Select one of the following safe coding systems:
|   utf-8 raw-text emacs-mule no-conversion
+------- 

Debugging gives me:

+------- 
| 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-prefix 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 encoding text in this context,\n" "e.g., for sending an email message.\n" "However, 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 coding 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.gmane.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.announce" 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)
+------- 

The content of  *temp file* is

+------- 
| dk\.test\.utf8-æøå 324 605
+------- 

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?




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

* Re: Agent and non-ascii newsgroup names
  2004-03-09 11:16 Agent and non-ascii newsgroup names Per Abrahamsen
@ 2004-03-09 14:57 ` Kevin Greiner
  2004-03-10 10:09   ` Per Abrahamsen
  0 siblings, 1 reply; 3+ messages in thread
From: Kevin Greiner @ 2004-03-09 14:57 UTC (permalink / raw)


Per Abrahamsen <abraham@dina.kvl.dk> writes:

> After CVS updating, I get this message sometimes, either when getting
> new news or entering some newsgroups.  
>
> +-------
> | These default coding systems were tried:
> |   iso-latin-1
> | However, none of them safely encodes the target text.
> | 
> | Select one of the following safe coding systems:
> |   utf-8 raw-text emacs-mule no-conversion
> +------- 
>
> Debugging gives me:
>
> +------- 
> | 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-prefix 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 encoding text in this context,\n" "e.g., for sending an email message.\n" "However, 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 coding 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.gmane.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.announce" 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)
> +------- 
>
> The content of  *temp file* is
>
> +------- 
> | dk\.test\.utf8-æøå 324 605
> +------- 
>
> 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 

(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




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

* Re: Agent and non-ascii newsgroup names
  2004-03-09 14:57 ` Kevin Greiner
@ 2004-03-10 10:09   ` Per Abrahamsen
  0 siblings, 0 replies; 3+ messages in thread
From: Per Abrahamsen @ 2004-03-10 10:09 UTC (permalink / raw)


Kevin Greiner <kgreiner@xpediantsolutions.com> writes:

> With this change, the agent should use raw-text to encode your group
> names.  You can get the patch from CVS.

Thanks, it seems to work now.




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

end of thread, other threads:[~2004-03-10 10:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-09 11:16 Agent and non-ascii newsgroup names Per Abrahamsen
2004-03-09 14:57 ` Kevin Greiner
2004-03-10 10:09   ` Per Abrahamsen

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