From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Fixing Gnus, and string encoding question Date: Sun, 07 Apr 2019 14:18:17 +0200 Message-ID: <87ef6eovp2.fsf@igel.home> References: <87d0m0qivv.fsf@ericabrahamsen.net> <87zhp3swit.fsf@ericabrahamsen.net> <87wok6bgls.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="180696"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) Cc: Eric Abrahamsen , Emacs developers To: Noam Postavsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 07 14:18:40 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hD6kx-000kqq-Gg for ged-emacs-devel@m.gmane.org; Sun, 07 Apr 2019 14:18:39 +0200 Original-Received: from localhost ([127.0.0.1]:38789 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hD6kw-0004IZ-BK for ged-emacs-devel@m.gmane.org; Sun, 07 Apr 2019 08:18:38 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50329) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hD6ki-0004ID-TL for emacs-devel@gnu.org; Sun, 07 Apr 2019 08:18:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hD6kh-0000LR-Rv for emacs-devel@gnu.org; Sun, 07 Apr 2019 08:18:24 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.9]:55981) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hD6kh-0000Ip-KR for emacs-devel@gnu.org; Sun, 07 Apr 2019 08:18:23 -0400 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 44cXdS1FLgz1rwJG; Sun, 7 Apr 2019 14:18:20 +0200 (CEST) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 44cXdS0hN5z1qsx5; Sun, 7 Apr 2019 14:18:20 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id D2Z78HxMm0dw; Sun, 7 Apr 2019 14:18:19 +0200 (CEST) X-Auth-Info: t8VKKbYoL6MpgKFSuHFJmR3Exd1m52pUNCvoPdiTAEY7lituyDGZw5TWxz98SLTj Original-Received: from igel.home (ppp-46-244-183-51.dynamic.mnet-online.de [46.244.183.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Sun, 7 Apr 2019 14:18:19 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 1000) id 85A082C0D3B; Sun, 7 Apr 2019 14:18:17 +0200 (CEST) X-Yow: The Korean War must have been fun. In-Reply-To: (Noam Postavsky's message of "Sun, 7 Apr 2019 07:59:09 -0400") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.18.0.9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:235067 Archived-At: On Apr 07 2019, Noam Postavsky wrote: > On Sun, 7 Apr 2019 at 00:10, Eric Abrahamsen = wrote: > >> You can get the string I'm fighting with by saving the attached file a= nd >> running: >> >> (with-temp-buffer >> (set-buffer-multibyte t) >> (let ((coding-system-for-read 'raw-text)) >> (insert-file-contents "active") >> (goto-char (point-min)) >> (symbol-name (read (current-buffer))))) >> >> I'm trying to turn that into something that looks like >> "nnml:=C3=A3\203\206=C3=A3\202=C2=B9=C3=A3\203\210" > > Ah, needs multibyte-char-to-unibyte: > > (apply #'string > (mapcar #'multibyte-char-to-unibyte > (with-temp-buffer > (set-buffer-multibyte t) > (let ((coding-system-for-read 'raw-text)) > (insert-file-contents "active") > (goto-char (point-min)) > (symbol-name (read (current-buffer))))))) (encode-coding-string (symbol-name (read (current-buffer))) 'raw-text) Andreas. --=20 Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint =3D 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC= 1 "And now for something completely different."