From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#75397: 29.4; GNUS message mode lacks Cyrillic support (GNU/Linux) Date: Wed, 08 Jan 2025 17:30:18 +0200 Message-ID: <86tta92uid.fsf@gnu.org> References: <87ikqs4vh9.fsf@qUsTRXiEQl2mqe0RhRTCBvdMK1NPDFYUhwG8H6ChHv1t8DocVciblLlLbOcY.dobrynin.net> <87ldvo9tct.fsf@linux-m68k.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36243"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 75397@debbugs.gnu.org, ndobrynin@gmail.com To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 08 16:31:34 2025 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tVY1t-0009Ir-H0 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Jan 2025 16:31:33 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tVY1j-0005Gp-Ig; Wed, 08 Jan 2025 10:31:23 -0500 Original-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 ) id 1tVY1c-0005FZ-6m for bug-gnu-emacs@gnu.org; Wed, 08 Jan 2025 10:31:20 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tVY1N-0000Ef-Ru for bug-gnu-emacs@gnu.org; Wed, 08 Jan 2025 10:31:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-version:References:In-Reply-To:From:Date:To:Subject; bh=ryDsqYkjBoF7WLZR1WsqS4Z53ZQkY/oI0OQpkMn6Uo4=; b=a2636CG6OShq4fIV7XxFGULjMAPLx6v8ANQ9iN8F0euvDA3Jup06cwFqg+bF/XDQcc465nL15SLI989UFkCi7salQkgw6r5rDW6n5LSsNF6POw7LGA+TDfYEcR5y0ERYocWiX6Al0JoNt/LkzBLr0ri6RHt77LAAtyoNHbjob3jm3ELf0pDt/0pJv3S1H+X49/KKppMO16MnfMjKj3X9UHpKxBU0aCTwP6Q6/tKbrQNIoqN9SDDBlAOchn0dM3Snzndxfkm+7nLr1DZVyk5BuqQB9UwytzEWXvOZsMM3LrNpx9L2CdCgWgEXz5fMJ+TL6GNTkYmv1Eu0FPlV6fLoCw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tVY1N-0000gG-NJ for bug-gnu-emacs@gnu.org; Wed, 08 Jan 2025 10:31:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Jan 2025 15:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75397 X-GNU-PR-Package: emacs Original-Received: via spool by 75397-submit@debbugs.gnu.org id=B75397.17363502312557 (code B ref 75397); Wed, 08 Jan 2025 15:31:01 +0000 Original-Received: (at 75397) by debbugs.gnu.org; 8 Jan 2025 15:30:31 +0000 Original-Received: from localhost ([127.0.0.1]:48554 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tVY0t-0000f9-46 for submit@debbugs.gnu.org; Wed, 08 Jan 2025 10:30:31 -0500 Original-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 ) id 1tVY0r-0000eo-8i for 75397@debbugs.gnu.org; Wed, 08 Jan 2025 10:30:29 -0500 Original-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 ) 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==; In-Reply-To: <87ldvo9tct.fsf@linux-m68k.org> (message from Andreas Schwab on Mon, 06 Jan 2025 10:36:34 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:298786 Archived-At: > Cc: 75397@debbugs.gnu.org > From: Andreas Schwab > 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?