GNU bug report logs - #75397
29.4; GNUS message mode lacks Cyrillic support (GNU/Linux)

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: "Nickolai Dobrynin" <ndobrynin@HIDDEN>; dated Mon, 6 Jan 2025 09:09:03 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 75397 <at> debbugs.gnu.org:


Received: (at 75397) by debbugs.gnu.org; 8 Jan 2025 18:42:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 08 13:42:51 2025
Received: from localhost ([127.0.0.1]:48990 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tVb11-000347-Es
	for submit <at> debbugs.gnu.org; Wed, 08 Jan 2025 13:42:51 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:34902)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tVb10-00033o-13
 for 75397 <at> debbugs.gnu.org; Wed, 08 Jan 2025 13:42:50 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1tVb0t-0005KM-NH; Wed, 08 Jan 2025 13:42:43 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=uJ2sP+pq9lhAnlzDGrvhOUlaPyFxia3TgQPumJOL3bM=; b=cRUF+s+1pWeDFaCu3dyX
 ufkrJ72PR+Ka6J2tfAk4jiXAdbyiitlv2E5gDTddXKPMKZLJ/WVkOUrTsgG8+dtAI1Yc7alJ9aIqb
 V0B7XeLuxg4x5n1Z/6B+CDnxGO/R7G1/u12V8Vbc15qXwugb/W0CC3exAV34JLnBwDwejjVBz+r9P
 Aezb/QpmquRd0YIWnB3KIZmF/qH7JMTYqk5urud9imL9TSeJR/0dCdzQjkFxpfW83FfiveDBDilX/
 fr1h++mV6Zzoff7WXzP2/3er0Uo2gp8gQlG1gNsvUGsTWGguX8HM+TLtj6gTQnx4vj6VqeBiajC0N
 aF6C3R4Sb8oV9w==;
Date: Wed, 08 Jan 2025 20:42:39 +0200
Message-Id: <86plkx2lls.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Andreas Schwab <schwab@HIDDEN>
In-Reply-To: <87bjwhz1qb.fsf@HIDDEN> (message from Andreas Schwab on Wed,
 08 Jan 2025 17:53:16 +0100)
Subject: Re: bug#75397: 29.4; GNUS message mode lacks Cyrillic support
 (GNU/Linux)
References: <87ikqs4vh9.fsf@HIDDEN>
 <87ldvo9tct.fsf@HIDDEN> <86tta92uid.fsf@HIDDEN>
 <87bjwhz1qb.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 75397
Cc: 75397 <at> debbugs.gnu.org, ndobrynin@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Andreas Schwab <schwab@HIDDEN>
> Cc: ndobrynin@HIDDEN,  75397 <at> debbugs.gnu.org
> Date: Wed, 08 Jan 2025 17:53:16 +0100
> 
> On Jan 08 2025, Eli Zaretskii wrote:
> 
> >> Cc: 75397 <at> debbugs.gnu.org
> >> From: Andreas Schwab <schwab@HIDDEN>
> >> Date: Mon, 06 Jan 2025 10:36:34 +0100
> >> 
> >> On Jan 06 2025, Nickolai Dobrynin wrote:
> >> 
> >> > 1. Type M-gnus to start GNUS.
> >> > 2. Start composing a message by pressing 'm'.
> >> > 3. Enter the first, say, 5 letters of the Cyrillic alphabet, i.e. абвгд.
> >> > 4. Press C-c C-d to save the draft.
> >> > 5. Press S D e to resume editing.
> >> > 6. Bizarrely enough, instead of "абвгд", you will see a sequence of digits "01234".
> >> >
> >> > Is this even real?? By the way, this does not occur with ordinary text
> >> > files. And everything works fine in the view mode inside the draft
> >> > group. Pressing S D e, on the other hand, makes things go haywire.
> >> 
> >> The problem is that message-dont-send doesn't encode the message when it
> >> saves it.
> >
> > I must be missing something here, because I don't see what you
> > describe above:
> 
> It is about MIME encoding.
> 
> >   (defun message-dont-send ()
> >     "Don't send the message you have been editing.
> >   Instead, just auto-save the buffer and then bury it."
> >     (interactive nil message-mode)
> >     (set-buffer-modified-p t)
> >     (save-buffer)  <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> >     (let ((actions message-postpone-actions))
> >       (message-bury (current-buffer))
> >       (message-do-actions actions)))
> 
> This just saves the raw buffer contents, but
> gnus-summary-resend-message-edit expects it to be a proper RFC2822 mail,
> with suitable MIME headers.

OK, but then where is it documented that "S D e" in Gnus Summary is
supposed to read the draft saved by "C-c C-d" in the mail buffer?
Could it be that these two are not supposed to work together?

The node "Drafts" in the Gnus manual describesa different procedure.
If I follow it, then after typing "D e" in the nndraft:drafts group, I
get placed in the *unsent mail* buffer with the correct Cyrillic text.

Nickolai, did you try to use these different commands in your
scenario?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75397; Package emacs. Full text available.

Message received at 75397 <at> debbugs.gnu.org:


Received: (at 75397) by debbugs.gnu.org; 8 Jan 2025 17:12:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 08 12:12:43 2025
Received: from localhost ([127.0.0.1]:48700 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tVZbm-00061g-MT
	for submit <at> debbugs.gnu.org; Wed, 08 Jan 2025 12:12:43 -0500
Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:54511)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <rpluim@HIDDEN>) id 1tVZbk-00061Q-3q
 for 75397 <at> debbugs.gnu.org; Wed, 08 Jan 2025 12:12:40 -0500
Received: by mail-wr1-x433.google.com with SMTP id
 ffacd0b85a97d-385f06d0c8eso19660f8f.0
 for <75397 <at> debbugs.gnu.org>; Wed, 08 Jan 2025 09:12:40 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1736356354; x=1736961154; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id
 :reply-to; bh=qBkEDvBqRB10VLfJEGcpac38Z6UaaqtERuES28AeR0g=;
 b=VLHGMr2KcWNhy/CYchhQA3k8JMlUmjSCJVCBC2GY4sQBxSz79VTaGMPp22KGEQ8nRM
 UK8UnC9CbMfwvh9li0Y5UbZcWWsec2Gjln8oxEYYDoU3Y2fJPmiEIfoWlNzstMtHQ+FR
 Q5cyFZ1ii1UfEh7QI8dIuUtJ7plK9un4E1KCOJV0Rw05M5TCdEC462e9x9sb5Unx2CG7
 M0wKyoMrC/RWfKLQlMu6wAz2eSnsvFNmMwq0D9xdQwm9g00wJCzynePX8sdWaqEAd+uZ
 S/R/HzNt1vU6bfn2q4k5aszHkMBiWlK036KuRf92JaqtCQiyP0oLLDgSv7XFAbuo8BOe
 Ah6g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1736356354; x=1736961154;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=qBkEDvBqRB10VLfJEGcpac38Z6UaaqtERuES28AeR0g=;
 b=fkn6kJzX8kNmfRDibVitRgN78NmRhDQmsP6h6T2JDPqI9q7AVLcvq/pdPyjRWL+A88
 hogLW1XgLWl0R5tptWqzzedAsDBAIFaSeVmquD4rtbZfOxw79fAMjJ2iWwzEivBqoC5o
 BFnbPx7oVZLZrSsqVp6lGn31Cf+q+NsD6ft7ILgKa8Q+OyZoxdiPojP16dKLVoAkaxDK
 J8/EWSwq0RezsUCQLVKRWsi3IGeTeB+q0vCsI5IJiy1MiRd8zAqhcw/c+uONkTZZKcjD
 oM8WJk9v/+gavvXVDhY2EFk9YwTp3kelgxvpkNHMLnUrY96B7UMrtQLOz7MK+eOWo+mh
 NOZQ==
X-Forwarded-Encrypted: i=1;
 AJvYcCWTEqlsDq3gL+BoLbghHR/J/w60DBQxbHP3zeG3w/j4Iw4EE4xpwV+lAXPbf6NN6FIleiu1eQ==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yx9jbZCOJZGT0/Ektwdn6cG6YtZhuOOaj9+OBeTd/KXomllhItp
 WpXVEuMWbz2fdSPbrZhEL5oinOF3OyE89/Nk47TvO0Aeg6vUM27157qXZQ==
X-Gm-Gg: ASbGnctozKnWRqrQ03RwDbGCIi+Tq4ayoXUcGkha0MuUz1Vm4TLknldGLFY3nCTy6yV
 ukAB1F8s55YnhTkbFR3SUmh+2SzhbVZK4uwniIzcgQXXwyefoDBYJZkYml7eJ2xEKxgtn+MJV1O
 7cjfKDK8cet5W1Z0Gznu2dBJypxize7Zpalfwk05DSZ39A95zcjq5hXIQAIoz+bzVAgDPUgIhMP
 FnKW20x7tPR/OYKV/RM2Ld7P8IBSMg65FwhcG2HwWTe
X-Google-Smtp-Source: AGHT+IGZ+cWfff5SI8OC7NgufVDHDLoJJ2sAt7yhfsNbNw051naStj2xTLtroZduVv7gf3RuHiRWhw==
X-Received: by 2002:a5d:47c5:0:b0:386:1cd3:8a09 with SMTP id
 ffacd0b85a97d-38a872d2addmr2836903f8f.1.1736356353590; 
 Wed, 08 Jan 2025 09:12:33 -0800 (PST)
Received: from rltb ([2a01:e0a:3f3:fb51:e89c:7c24:7fd1:983d])
 by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-436e2da6336sm26985945e9.8.2025.01.08.09.12.32
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 08 Jan 2025 09:12:33 -0800 (PST)
From: Robert Pluim <rpluim@HIDDEN>
To: Andreas Schwab <schwab@HIDDEN>
Subject: Re: bug#75397: 29.4; GNUS message mode lacks Cyrillic support
 (GNU/Linux)
In-Reply-To: <87bjwhz1qb.fsf@HIDDEN> (Andreas Schwab's message of "Wed, 08
 Jan 2025 17:53:16 +0100")
References: <87ikqs4vh9.fsf@HIDDEN>
 <87ldvo9tct.fsf@HIDDEN> <86tta92uid.fsf@HIDDEN>
 <87bjwhz1qb.fsf@HIDDEN>
Date: Wed, 08 Jan 2025 18:12:32 +0100
Message-ID: <87y0zlfcvz.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 75397
Cc: 75397 <at> debbugs.gnu.org, ndobrynin@HIDDEN, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>>>>> On Wed, 08 Jan 2025 17:53:16 +0100, Andreas Schwab <schwab@linux-m68k=
.org> said:

    Andreas> On Jan 08 2025, Eli Zaretskii wrote:
    >>> Cc: 75397 <at> debbugs.gnu.org
    >>> From: Andreas Schwab <schwab@HIDDEN>
    >>> Date: Mon, 06 Jan 2025 10:36:34 +0100
    >>>=20
    >>> On Jan 06 2025, Nickolai Dobrynin wrote:
    >>>=20
    >>> > 1. Type M-gnus to start GNUS.
    >>> > 2. Start composing a message by pressing 'm'.
    >>> > 3. Enter the first, say, 5 letters of the Cyrillic alphabet, i.e.=
 =D0=B0=D0=B1=D0=B2=D0=B3=D0=B4.
    >>> > 4. Press C-c C-d to save the draft.
    >>> > 5. Press S D e to resume editing.
    >>> > 6. Bizarrely enough, instead of "=D0=B0=D0=B1=D0=B2=D0=B3=D0=B4",=
 you will see a sequence of digits "01234".
    >>> >
    >>> > Is this even real?? By the way, this does not occur with ordinary=
 text
    >>> > files. And everything works fine in the view mode inside the draft
    >>> > group. Pressing S D e, on the other hand, makes things go haywire.
    >>>=20
    >>> The problem is that message-dont-send doesn't encode the message wh=
en it
    >>> saves it.
    >>=20
    >> I must be missing something here, because I don't see what you
    >> describe above:

    Andreas> It is about MIME encoding.

    >> (defun message-dont-send ()
    >> "Don't send the message you have been editing.
    >> Instead, just auto-save the buffer and then bury it."
    >> (interactive nil message-mode)
    >> (set-buffer-modified-p t)
    >> (save-buffer)  <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    >> (let ((actions message-postpone-actions))
    >> (message-bury (current-buffer))
    >> (message-do-actions actions)))

    Andreas> This just saves the raw buffer contents, but
    Andreas> gnus-summary-resend-message-edit expects it to be a proper RFC=
2822 mail,
    Andreas> with suitable MIME headers.

Yes. Which is why the command to edit an unsent draft is 'e' (or 'D
e').

Robert
--=20




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75397; Package emacs. Full text available.

Message received at 75397 <at> debbugs.gnu.org:


Received: (at 75397) by debbugs.gnu.org; 8 Jan 2025 16:53:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 08 11:53:25 2025
Received: from localhost ([127.0.0.1]:48675 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tVZJ6-0004cb-Ii
	for submit <at> debbugs.gnu.org; Wed, 08 Jan 2025 11:53:24 -0500
Received: from mail-out.m-online.net ([212.18.0.9]:58838)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <whitebox@HIDDEN>)
 id 1tVZJ1-0004cH-Bp
 for 75397 <at> debbugs.gnu.org; Wed, 08 Jan 2025 11:53:22 -0500
Received: from frontend01.mail.m-online.net (unknown [192.168.8.182])
 by mail-out.m-online.net (Postfix) with ESMTP id 4YSvB54WvZz1qsPK;
 Wed,  8 Jan 2025 17:53:17 +0100 (CET)
Received: from localhost (dynscan1.mnet-online.de [192.168.6.68])
 by mail.m-online.net (Postfix) with ESMTP id 4YSvB52kwQz1qqlY;
 Wed,  8 Jan 2025 17:53:17 +0100 (CET)
X-Virus-Scanned: amavis at mnet-online.de
Received: from mail.mnet-online.de ([192.168.8.182])
 by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavis, port 10024)
 with ESMTP id bEmfuSOLsyBF; Wed,  8 Jan 2025 17:53:16 +0100 (CET)
X-Auth-Info: Du+1itA86/bnZcmbVEOVVc51PWmTGh61mJn+v7b2HNW4oozwv2wpeDF+rUyW2l8N
Received: from igel.home (aftr-82-135-83-68.dynamic.mnet-online.de
 [82.135.83.68])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits))
 (No client certificate requested)
 by mail.mnet-online.de (Postfix) with ESMTPSA;
 Wed,  8 Jan 2025 17:53:16 +0100 (CET)
Received: by igel.home (Postfix, from userid 1000)
 id 776CA2C1A30; Wed,  8 Jan 2025 17:53:16 +0100 (CET)
From: Andreas Schwab <schwab@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#75397: 29.4; GNUS message mode lacks Cyrillic support
 (GNU/Linux)
In-Reply-To: <86tta92uid.fsf@HIDDEN> (Eli Zaretskii's message of "Wed, 08 Jan
 2025 17:30:18 +0200")
References: <87ikqs4vh9.fsf@HIDDEN>
 <87ldvo9tct.fsf@HIDDEN> <86tta92uid.fsf@HIDDEN>
Date: Wed, 08 Jan 2025 17:53:16 +0100
Message-ID: <87bjwhz1qb.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.5 (/)
X-Debbugs-Envelope-To: 75397
Cc: 75397 <at> debbugs.gnu.org, ndobrynin@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.5 (-)

On Jan 08 2025, Eli Zaretskii wrote:

>> Cc: 75397 <at> debbugs.gnu.org
>> From: Andreas Schwab <schwab@HIDDEN>
>> Date: Mon, 06 Jan 2025 10:36:34 +0100
>> 
>> On Jan 06 2025, Nickolai Dobrynin wrote:
>> 
>> > 1. Type M-gnus to start GNUS.
>> > 2. Start composing a message by pressing 'm'.
>> > 3. Enter the first, say, 5 letters of the Cyrillic alphabet, i.e. абвгд.
>> > 4. Press C-c C-d to save the draft.
>> > 5. Press S D e to resume editing.
>> > 6. Bizarrely enough, instead of "абвгд", you will see a sequence of digits "01234".
>> >
>> > Is this even real?? By the way, this does not occur with ordinary text
>> > files. And everything works fine in the view mode inside the draft
>> > group. Pressing S D e, on the other hand, makes things go haywire.
>> 
>> The problem is that message-dont-send doesn't encode the message when it
>> saves it.
>
> I must be missing something here, because I don't see what you
> describe above:

It is about MIME encoding.

>   (defun message-dont-send ()
>     "Don't send the message you have been editing.
>   Instead, just auto-save the buffer and then bury it."
>     (interactive nil message-mode)
>     (set-buffer-modified-p t)
>     (save-buffer)  <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>     (let ((actions message-postpone-actions))
>       (message-bury (current-buffer))
>       (message-do-actions actions)))

This just saves the raw buffer contents, but
gnus-summary-resend-message-edit expects it to be a proper RFC2822 mail,
with suitable MIME headers.

-- 
Andreas Schwab, schwab@HIDDEN
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75397; Package emacs. Full text available.

Message received at 75397 <at> debbugs.gnu.org:


Received: (at 75397) by debbugs.gnu.org; 8 Jan 2025 15:30:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 08 10:30:31 2025
Received: from localhost ([127.0.0.1]:48554 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tVY0t-0000f9-46
	for submit <at> debbugs.gnu.org; Wed, 08 Jan 2025 10:30:31 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:42290)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tVY0r-0000eo-8i
 for 75397 <at> debbugs.gnu.org; Wed, 08 Jan 2025 10:30:29 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1tVY0l-0008Q4-Dg; Wed, 08 Jan 2025 10:30:23 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=ryDsqYkjBoF7WLZR1WsqS4Z53ZQkY/oI0OQpkMn6Uo4=; b=Z5Hz2lLjSEYRA2LbBPmS
 KZrz5spGY4YGfe6s3S+GbPv032mjoaAZUQpYAj4a3zgBHBwkvuQ7vp3hWsPF7qsfVb0+M6rsc9P1D
 o4bxe1H5z6VCv3VGHJpbzIfzS8QQl1vqbcHLlmeLXcATX0BnY4ziIJVikOwdidEzRd1vo479ONB4K
 2YLjPOq2MH0IEzcQJt7qv9f3OR5w7IE4fqlBaY8x9kvhlv30Fk5drbzOMEgMRIeEH/X1f4BiWl8DH
 que5IGhYVift1GiMSJ7Wqd54fH8oDoZgPvXtGYCfJUS9USjDXvPfiJ9lf/PJWRVu3UifszD3J9I93
 0yMt0JiGhTCXQg==;
Date: Wed, 08 Jan 2025 17:30:18 +0200
Message-Id: <86tta92uid.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Andreas Schwab <schwab@HIDDEN>
In-Reply-To: <87ldvo9tct.fsf@HIDDEN> (message from Andreas Schwab on
 Mon, 06 Jan 2025 10:36:34 +0100)
Subject: Re: bug#75397: 29.4;
 GNUS message mode lacks Cyrillic support (GNU/Linux)
References: <87ikqs4vh9.fsf@HIDDEN>
 <87ldvo9tct.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 75397
Cc: 75397 <at> debbugs.gnu.org, ndobrynin@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Cc: 75397 <at> debbugs.gnu.org
> From: Andreas Schwab <schwab@HIDDEN>
> Date: Mon, 06 Jan 2025 10:36:34 +0100
> 
> On Jan 06 2025, Nickolai Dobrynin wrote:
> 
> > 1. Type M-gnus to start GNUS.
> > 2. Start composing a message by pressing 'm'.
> > 3. Enter the first, say, 5 letters of the Cyrillic alphabet, i.e. абвгд.
> > 4. Press C-c C-d to save the draft.
> > 5. Press S D e to resume editing.
> > 6. Bizarrely enough, instead of "абвгд", you will see a sequence of digits "01234".
> >
> > Is this even real?? By the way, this does not occur with ordinary text
> > files. And everything works fine in the view mode inside the draft
> > group. Pressing S D e, on the other hand, makes things go haywire.
> 
> The problem is that message-dont-send doesn't encode the message when it
> saves it.

I must be missing something here, because I don't see what you
describe above:

  (defun message-dont-send ()
    "Don't send the message you have been editing.
  Instead, just auto-save the buffer and then bury it."
    (interactive nil message-mode)
    (set-buffer-modified-p t)
    (save-buffer)  <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    (let ((actions message-postpone-actions))
      (message-bury (current-buffer))
      (message-do-actions actions)))

So message-dont-send saves the buffer.  And that buffer has a
buffer-file-coding-system set in message-set-auto-save-file-name,
which is called when message-mode is turned on (which is supposed to
happen when you press 'm' in Gnus):

    (setq buffer-file-coding-system message-draft-coding-system)))

And message-draft-coding-system is:


  (defvar message-draft-coding-system mm-auto-save-coding-system
    "Coding system to compose mail.")

which in my testing, starting from "emacs -Q", produces utf-8-emacs,
as I'd expect.

In my testing, the draft is saved using utf-8-emacs, and if I them
visit it, I get the Cyrillic text back.  As expected.

So where does the above breaks?  Is the value of
mm-auto-save-coding-system different?  Otherwise, save-buffer should
have encoded the draft's text.  What did I miss?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75397; Package emacs. Full text available.

Message received at 75397 <at> debbugs.gnu.org:


Received: (at 75397) by debbugs.gnu.org; 8 Jan 2025 12:47:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 08 07:47:34 2025
Received: from localhost ([127.0.0.1]:46348 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tVVTC-0000wA-LL
	for submit <at> debbugs.gnu.org; Wed, 08 Jan 2025 07:47:34 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:38432)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tVVT8-0000vk-Ct
 for 75397 <at> debbugs.gnu.org; Wed, 08 Jan 2025 07:47:31 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1tVVT3-0002tW-0Q; Wed, 08 Jan 2025 07:47:25 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=SerBoH7uVCRznT1ETCbBVVKD25aPNIUyHhvQjY+8m1U=; b=oBY3iO/N/KlF
 JigLPp5MecCNwXjmXzxcLrFHXKBPoREvDlt7EdUXl7QgLvnWh5zDM/DRQ7UTnpeKkWDvq4GSECoEq
 eJCtD9OSiI4VOAgLy6JuTSEuPmTRqdP4ZkiP2GKQj/PBS8CJbeeylmasL4wxkfBfCPEINheIExk2F
 9G7IlvAombZDPT3TnxKZy1zsSDlYP8VUqcjsizYnxhaz7j7EcDpbtUyuybcp332MuSz5btjsZhwwx
 TFN+pl7Wdl7xjr8826i4hCTPOwANvDxfpXPcGdyDwkJB6/oHYl6R/kEqDypHrSP1zriDJm7+iEU7l
 tjVzE9Qvp/jJHkJtiJdvyQ==;
Date: Wed, 08 Jan 2025 14:47:22 +0200
Message-Id: <868qrl4gmd.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: "Nickolai Dobrynin" <ndobrynin@HIDDEN>
In-Reply-To: <8734hulcf6.fsf@HIDDEN>
 (ndobrynin@HIDDEN)
Subject: Re: bug#75397: 29.4;
 GNUS message mode lacks Cyrillic support (GNU/Linux)
References: <87ikqs4vh9.fsf@HIDDEN>
 <8734hulcf6.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 75397
Cc: 75397 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: "Nickolai Dobrynin" <ndobrynin@HIDDEN>
> Date: Tue, 07 Jan 2025 19:13:49 +0100
> 
> 1. Can you suggest a workaround for this?
> 
> 2. For clarity's sake, would it be better to change the title of the
> bug report to, e.g., "messages get corrupted after being saved to "drafts" b/c
> message-dont-send doesn't encode them before saving"? This would
> probably summarize the problem much better to the rest of the Emacs team.

No need.  The Emacs team, such as it is, took good note of your
report, and will investigate the ways to fix this soon.  At that time,
we may have suggestions for workarounds or patches for fixing the
problem.  It's just that we didn't have yet time to do so.

For now, the only workaround to try I can suggest is to explicitly
bind the coding-system while saving the draft, like this:

  C-x RET c utf-8-emacs RET C-c C-d

If after that "S D e" doesn't restore the original Cyrillic text, try
this instead:

  C-x RET c utf-8-emacs RET S D e

P.S. Please don't change the Subject line when you respond to messages
in this thread: it makes it a bit harder to find the previous/next
messages when reading the discussions.  I've restored the original
Subject on my response.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75397; Package emacs. Full text available.

Message received at 75397 <at> debbugs.gnu.org:


Received: (at 75397) by debbugs.gnu.org; 8 Jan 2025 03:07:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 07 22:07:22 2025
Received: from localhost ([127.0.0.1]:45440 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tVMPh-00083L-LZ
	for submit <at> debbugs.gnu.org; Tue, 07 Jan 2025 22:07:21 -0500
Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]:56825)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <ndobrynin@HIDDEN>)
 id 1tVE5U-0005S4-OG
 for 75397 <at> debbugs.gnu.org; Tue, 07 Jan 2025 13:13:57 -0500
Received: by mail-ed1-x52a.google.com with SMTP id
 4fb4d7f45d1cf-5d3e6f6cf69so27513724a12.1
 for <75397 <at> debbugs.gnu.org>; Tue, 07 Jan 2025 10:13:56 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1736273630; x=1736878430; darn=debbugs.gnu.org;
 h=mime-version:user-agent:message-id:date:subject:to:from:from:to:cc
 :subject:date:message-id:reply-to;
 bh=MDwVWws4bF2of3OZ1Lf0JSNtsQEzBI+6KF2HYw8NU+k=;
 b=mJs+aNl0F6kgvhOR2QSoIz2YIOqFQkRO/coBX1eWQKqJvKe+86n2by1GE0sYGifl+r
 b9AdoGrf4PVpIKZueZhfIamdvvyKLZ4VV2xlGVruLQm8aiNY85FksYJACJQLo7o0sv0X
 zDzFQ2fVsB5jcnThVXaAUj7ZRFCx9wNi2cFVfjlyz70qBkY08ZhaYqnMg+05x8WfqX1b
 6y1TrtevttVgDiNQBWZ8xs1qrQJwJHz37p58jSyJaQEXULt/TxczHQZ9kiEigNfG/Nrt
 f0aRzGsz5Vabd5svDXUnAtUYDD9U2j0oq4G/0XClnVNyqZioaTE2296UC9Fe+E9C8gEB
 WWDA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1736273630; x=1736878430;
 h=mime-version:user-agent:message-id:date:subject:to:from
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=MDwVWws4bF2of3OZ1Lf0JSNtsQEzBI+6KF2HYw8NU+k=;
 b=OUL5qd/iAcQ9/Xj/zJ7wiG4umskqNS6qL/y0CqQJ0ND25mKGraiPW3ZlIGlzlUPgXH
 AGu3cgLBEiDgs8YhheANYUhdXj4Z4+QdcFPariWS8xIuCUUhs0otT2b3dyATVJZjiOwg
 /HawN6xUGtz09xvMdgqMoHfMorEIIAz63+AFNhsCuoK/y+ANe1V7Ra1jt+2BMj/yCHd5
 zjbu/bQqBRPDwdPUNkqDL+l8k2XIwF3332vDYV9MsFTep5Dt3gIy0DgUaGAH258YN9E1
 jpl3SSjQdt+UW0wHtrZog6PVfbBoqOjFC6wv7qmbnzSQNQk1gnJrjetToDXUE36mfPbB
 ldww==
X-Gm-Message-State: AOJu0YxDsZizEJmiOltjQCDexXhy66es8dbC7hlPyPoGt3niKGS0Q8NV
 P563b+pYmz9QchM3kCjOKy/RkhRl7VIN2qFkrj8zp/AtK9yPX0C8TXcjshOn
X-Gm-Gg: ASbGncvRLrlnkvNVpLiUBzFLDivQkCy4JAMAde00knwpLRMVkfotzmlkzpZ+Oa4i1fW
 6A7zBOeX7EKsGi2GMVKbTw/EGLN6/CugaqheXZeGn5H/uHRJWz7IwuvRdQ4Z5wvdnAPAvtXEAMM
 wGKW/fu0HNbhXEpTHtCA8GWvHTU3GmGqDxpJdqDpIKRyKr9gnNRKQbVenjG04JNq08uOXiwqEaU
 3G9Ro/u260UpP7uuLarHqkjwuJBm4NxG7+8DbKfqIvaMpBxc878gnoO8lAZ8fNwMYv8JHFXJ4GI
 1m8DsvIzYuZuba+ph4KR54zUkSPC/C3qIcTLLea08Joy3XIb4TFnbxuO0YxOug==
X-Google-Smtp-Source: AGHT+IEz+a+pL30VQF0/D9/b0k3O5qVpE/gNqXrZttc938BDIzkpKQdL2fT2vmLgCEdB48IjIq6Tmw==
X-Received: by 2002:a05:6402:5255:b0:5d3:cfd0:8d4b with SMTP id
 4fb4d7f45d1cf-5d81de38c45mr60170179a12.33.1736273630184; 
 Tue, 07 Jan 2025 10:13:50 -0800 (PST)
Received: from nova-laptop.dobrynin.net
 (p200300eaef29126ec7899520e64098e3.dip0.t-ipconnect.de.
 [2003:ea:ef29:126e:c789:9520:e640:98e3])
 by smtp.gmail.com with ESMTPSA id
 4fb4d7f45d1cf-5d80701bf20sm24492330a12.83.2025.01.07.10.13.49
 for <75397 <at> debbugs.gnu.org>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 07 Jan 2025 10:13:49 -0800 (PST)
From: "Nickolai Dobrynin" <ndobrynin@HIDDEN>
To: 75397 <at> debbugs.gnu.org
Subject: Any workarounds for this?
Date: Tue, 07 Jan 2025 19:13:49 +0100
Message-ID: <8734hulcf6.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 75397
X-Mailman-Approved-At: Tue, 07 Jan 2025 22:07:19 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi Andreas,

1. Can you suggest a workaround for this?

2. For clarity's sake, would it be better to change the title of the
bug report to, e.g., "messages get corrupted after being saved to "drafts" b/c
message-dont-send doesn't encode them before saving"? This would
probably summarize the problem much better to the rest of the Emacs team.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75397; Package emacs. Full text available.

Message received at 75397 <at> debbugs.gnu.org:


Received: (at 75397) by debbugs.gnu.org; 6 Jan 2025 09:36:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 06 04:36:39 2025
Received: from localhost ([127.0.0.1]:36705 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tUjXL-0000fz-Ht
	for submit <at> debbugs.gnu.org; Mon, 06 Jan 2025 04:36:39 -0500
Received: from mail-out.m-online.net ([2001:a60:0:28:0:1:25:1]:33595)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <whitebox@HIDDEN>)
 id 1tUjXJ-0000fp-FM
 for 75397 <at> debbugs.gnu.org; Mon, 06 Jan 2025 04:36:38 -0500
Received: from frontend01.mail.m-online.net (unknown [192.168.8.182])
 by mail-out.m-online.net (Postfix) with ESMTP id 4YRTb74vvcz1sKx2;
 Mon,  6 Jan 2025 10:36:35 +0100 (CET)
Received: from localhost (dynscan1.mnet-online.de [192.168.6.68])
 by mail.m-online.net (Postfix) with ESMTP id 4YRTb70qR3z1qqlS;
 Mon,  6 Jan 2025 10:36:35 +0100 (CET)
X-Virus-Scanned: amavis at mnet-online.de
Received: from mail.mnet-online.de ([192.168.8.182])
 by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavis, port 10024)
 with ESMTP id SmFP6Xb3i4Fm; Mon,  6 Jan 2025 10:36:34 +0100 (CET)
X-Auth-Info: r26ilLk6jCD0qJLUBsO4nxdrmUDGKvhc1iqC92NiyHX0iZgc3PGfnjd3d3Yh045Y
Received: from tiger.home (aftr-82-135-83-66.dynamic.mnet-online.de
 [82.135.83.66])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
 (No client certificate requested)
 by mail.mnet-online.de (Postfix) with ESMTPSA;
 Mon,  6 Jan 2025 10:36:34 +0100 (CET)
Received: by tiger.home (Postfix, from userid 1000)
 id 0B02E31F07F; Mon,  6 Jan 2025 10:36:34 +0100 (CET)
From: Andreas Schwab <schwab@HIDDEN>
To: "Nickolai Dobrynin" <ndobrynin@HIDDEN>
Subject: Re: bug#75397: 29.4; GNUS message mode lacks Cyrillic support
 (GNU/Linux)
In-Reply-To: <87ikqs4vh9.fsf@HIDDEN>
 (Nickolai Dobrynin's message of "Mon, 06 Jan 2025 01:49:38 +0100")
References: <87ikqs4vh9.fsf@HIDDEN>
X-Yow: I had a lease on an OEDIPUS COMPLEX back in '81...
Date: Mon, 06 Jan 2025 10:36:34 +0100
Message-ID: <87ldvo9tct.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.5 (/)
X-Debbugs-Envelope-To: 75397
Cc: 75397 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.5 (-)

On Jan 06 2025, Nickolai Dobrynin wrote:

> 1. Type M-gnus to start GNUS.
> 2. Start composing a message by pressing 'm'.
> 3. Enter the first, say, 5 letters of the Cyrillic alphabet, i.e. абвгд.
> 4. Press C-c C-d to save the draft.
> 5. Press S D e to resume editing.
> 6. Bizarrely enough, instead of "абвгд", you will see a sequence of digits "01234".
>
> Is this even real?? By the way, this does not occur with ordinary text
> files. And everything works fine in the view mode inside the draft
> group. Pressing S D e, on the other hand, makes things go haywire.

The problem is that message-dont-send doesn't encode the message when it
saves it.  gnus-summary-resend-message-edit assumes that the stored
message is encoded and goes through an unibyte buffer while trying to
decode it, which then strips off all non-ascii bits from the characters.

-- 
Andreas Schwab, schwab@HIDDEN
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75397; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 6 Jan 2025 09:08:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 06 04:08:40 2025
Received: from localhost ([127.0.0.1]:36633 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tUj6G-0007kA-7r
	for submit <at> debbugs.gnu.org; Mon, 06 Jan 2025 04:08:40 -0500
Received: from lists.gnu.org ([2001:470:142::17]:59570)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <ndobrynin@HIDDEN>)
 id 1tUbJV-0007Uh-G9
 for submit <at> debbugs.gnu.org; Sun, 05 Jan 2025 19:49:50 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ndobrynin@HIDDEN>)
 id 1tUbJP-0004aT-NA
 for bug-gnu-emacs@HIDDEN; Sun, 05 Jan 2025 19:49:43 -0500
Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <ndobrynin@HIDDEN>)
 id 1tUbJO-0001Yf-A4
 for bug-gnu-emacs@HIDDEN; Sun, 05 Jan 2025 19:49:43 -0500
Received: by mail-ej1-x632.google.com with SMTP id
 a640c23a62f3a-aafc9d75f8bso201274166b.2
 for <bug-gnu-emacs@HIDDEN>; Sun, 05 Jan 2025 16:49:41 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1736124580; x=1736729380; darn=gnu.org;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :subject:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=06MFxigO/XbE4NpfvXQOn6FwmfXl4Q/8FosqDb0a0Oo=;
 b=Tir7/4cK2EGVbjSO1Vvo0XdJRi/41Kp518vM4LS0xM3KWoGDi0bfVTeZhO58s3iYo+
 +xSttqkmiUjCC+sn7JN7SvpoRDS4LLRNl3zd4YETO5sp7iaJeKNFS7XrJ2v3MBx8QiGi
 4ykz8e0pfUcG72n0XAvuut9nglvPp/jy43VVn00WHimtUaNs9HH+1j79aXCwn6sTX3jV
 Ak34FRgkolaOvhUPdYIEOi9aFAQPXNJ+9IJXoI6N10CkzKCsXTw8y5ydN3StgijHqQQd
 F8GS7CZxtbvCuVkW8MEw2gNssk9MOHAhSnvb6lmiJAnkAmGVz5kZ3QC+LqpujfgIuWhF
 zmqw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1736124580; x=1736729380;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :subject:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=06MFxigO/XbE4NpfvXQOn6FwmfXl4Q/8FosqDb0a0Oo=;
 b=j+f02s9tUjr9EF46eAoUVs6KmHIOQGs0bDlgiZdO8jORo1njHImxJKMMLofK3Q9s+E
 pWZU5blMUfdsLm9Wst10sAvevpWulrEY+q36Yu1yOtJ0leh+whMms+l6zThVkHqXwDjS
 D9bGMZAxLUNd+6q7WSA1zNV6VwyDERjYfYSh15O2xhQvtgO9+w+y5iPAM0DWaPmWPCY4
 LLN1t61PgtDSBJ2laC3svCMCQVvgJtwq5Rw8rZhNM+TeCoS4cqh8fAzfqykOGES9gLik
 1BBVbnE04Kopumd56iIP98FYbPlWbSiEpcaJPMXbw97hbNv1HMSmLjVKZ2bS+t1KjuCd
 1kNg==
X-Gm-Message-State: AOJu0Ywt832SxK9J/+bUybR3jlQ4kSBF0MXB+XaIX3vOOzoM2svJUBXq
 kenRov9SWf5VrI/2fjL8Y7Sj5oSkm60x1dpwRj+ggFERxcrY0mmWXhl3xA==
X-Gm-Gg: ASbGnctahpC9eTOc5aoJO+pQm78K8JtTtGpBbyZ40CqjgV7bUjP+S+k+19mHyHbYJIw
 EHDFQxTX26cE2rhIxNt7UwNoLLz/vYiLfA4B3sSo81Mn0rbvsU/P078NCBdMSbfdgzVqW6t2glf
 jNIuEZ3GX8kdkVBTkSSIsEvMYGK+qZIKjHsWIzPCi6IjTY1K9eDJ1wEwbTTAkkOA+gm2Kf41q2o
 cIcqxYZqBSMAzVQpD55cp9dsG+Rb/VYWnFRHhKKNU3U1gZASnK5B1RnSjyfjX0nwQ79jUNFHnrB
 Bubb6X1mXBFiagDG1bYQIzRE/T02xRDW1X5oW9oxIVYxqItIqmY5JkHdurXk
X-Google-Smtp-Source: AGHT+IFnubUtvCKtDJe2ctiAEq/pEH4ErXEOmPEr9eFxP/zzbUsxOZCaCRylG3NQ/HIxSeK1g0aQSw==
X-Received: by 2002:a17:907:9691:b0:aa6:887a:57c0 with SMTP id
 a640c23a62f3a-aac2b947898mr5322282566b.28.1736124579388; 
 Sun, 05 Jan 2025 16:49:39 -0800 (PST)
Received: from nova-laptop.dobrynin.net
 (p200300eaef126074cfb31799d18a4eca.dip0.t-ipconnect.de.
 [2003:ea:ef12:6074:cfb3:1799:d18a:4eca])
 by smtp.gmail.com with ESMTPSA id
 a640c23a62f3a-aac0f014538sm2197105566b.146.2025.01.05.16.49.38
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 05 Jan 2025 16:49:39 -0800 (PST)
From: "Nickolai Dobrynin" <ndobrynin@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 29.4; GNUS message mode lacks Cyrillic support (GNU/Linux)
Date: Mon, 06 Jan 2025 01:49:38 +0100
Message-ID: <87ikqs4vh9.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=2a00:1450:4864:20::632;
 envelope-from=ndobrynin@HIDDEN; helo=mail-ej1-x632.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Mon, 06 Jan 2025 04:08:32 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

1. Type M-gnus to start GNUS.
2. Start composing a message by pressing 'm'.
3. Enter the first, say, 5 letters of the Cyrillic alphabet, i.e. =D0=B0=D0=
=B1=D0=B2=D0=B3=D0=B4.
4. Press C-c C-d to save the draft.
5. Press S D e to resume editing.
6. Bizarrely enough, instead of "=D0=B0=D0=B1=D0=B2=D0=B3=D0=B4", you will =
see a sequence of digits "01234".

Is this even real?? By the way, this does not occur with ordinary text
files. And everything works fine in the view mode inside the draft
group. Pressing S D e, on the other hand, makes things go haywire.

Incidentally, a similar problem, though not as bad, occurs with German
characters (e.g. =C3=A4) which get replaced with \number after pressing S D=
 e.

Many thanks.




Acknowledgement sent to "Nickolai Dobrynin" <ndobrynin@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#75397; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 21 Jan 2025 02:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.