all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: Deus Max <deusmax@gmx.com>
Cc: 39026-done@debbugs.gnu.org, 39026@debbugs.gnu.org
Subject: bug#39026: 27.0.50; gnus-group-decoded-name needs running gnus
Date: Tue, 14 Jan 2020 14:54:43 -0800	[thread overview]
Message-ID: <87ftghlkcs.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <874kwz6pnh.fsf@aia00054aia.gr> (Deus Max's message of "Mon, 13 Jan 2020 22:57:06 +0200")



On 01/13/20 22:57 PM, Deus Max wrote:
> On Mon, Jan 13 2020, Eric Abrahamsen wrote:
>
>>
>> Yeah, to be honest, I don't really know the point of the
>> gnus-group-name-charset-* stuff, and am mostly unwilling to mess with
>> anything I don't really understand. But if those variables have been
>> set, we'd need to know a group's method, and it really isn't possible to
>> get a group's method for sure unless Gnus is up and running.
>>
>> In fact, I suspect we could simply dump all the group-name-charset/group
>> decoding stuff, stop encoding/decoding altogether, but I don't know how
>> I would prove that wouldn't cause problems.
>>
>> Can you just not use gnus-group-decoded-name? As I mentioned, decoding
>> as 'utf-8-emacs should work fine.
>>
>> Eric
>
> Yes, I agree with you and will take your advice.
> Thanks for discussing the issue.
>
> For my needs, I will just replace gnus-group-name-decode with:
>
> #+begin_src emacs-lisp
>   (defun gnus-recent-decode-utf8 (string &optional charset)
>     "Decode a gnus-group name.
>   Replaces `gnus-group-name-decode' for decoding group names.
>   Default utf-8-emacs CHARSET unless provided otherwise."
>     (decode-coding-string string (or charset 'utf-8-emacs) t))
> #+end_src

That looks fine to me. Sorry I don't have a more definitive solution for
this.

> I guess you may close the bug.

Done.





      reply	other threads:[~2020-01-14 22:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-08  2:47 bug#39026: 27.0.50; gnus-group-decoded-name needs running gnus Deus Max
2020-01-08 19:09 ` Eric Abrahamsen
2020-01-09 13:22   ` Deus Max
2020-01-13 18:51     ` Eric Abrahamsen
2020-01-13 20:57   ` Deus Max
2020-01-14 22:54     ` Eric Abrahamsen [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=87ftghlkcs.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=39026-done@debbugs.gnu.org \
    --cc=39026@debbugs.gnu.org \
    --cc=deusmax@gmx.com \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.