From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id sBFhHj2WBWfxugAAe85BDQ:P1 (envelope-from ) for ; Tue, 08 Oct 2024 20:29:49 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id sBFhHj2WBWfxugAAe85BDQ (envelope-from ) for ; Tue, 08 Oct 2024 22:29:49 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=slmails.com header.s=dkim header.b=hyuey+W9; dmarc=pass (policy=quarantine) header.from=slmails.com; arc=pass ("simplelogin.co:s=arc-20230626:i=1"); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=2; s=key1; d=yhetil.org; t=1728419389; a=rsa-sha256; cv=pass; b=Tiyng1AYrmvpuikCra4yY25tsgnXxoVxHPCmZL4pT8Vv8i5JGaWQr/IPbOeDYGWf2ObEMS l1mfJOfKcfyOZ5mks7nXKs8tkoUe8+9FIPSHpWmIRq7aQ4xEARnnV007y2qKEDppQFdisl 8k9BVaLcMYEPGP+dhlJTI1iyIxl+W9joBCcoLYBByrRizKzRY7sKw7E7l5lrG9U3O46r7a v9j/6m60/WMEcNMazr93K4AffRW2RH0II3yzz6xMHV6H/NFZG9UWBP7y1MWFjJoB3UMqsH FmChaf8n5dnfEkWcGSirwxkpjKGcrJqC8Xvs4mUTn5UrNUkWaDnrkJegyUGAHQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=slmails.com header.s=dkim header.b=hyuey+W9; dmarc=pass (policy=quarantine) header.from=slmails.com; arc=pass ("simplelogin.co:s=arc-20230626:i=1"); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1728419389; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=t5ALlmD4rLjL9DwwZkdLHPHUbZPFoFnvdP/wMQPaq9s=; b=QrA7zHu5gqWTWVkFjNUYjvpeVbkb7QBF053YxMNhA+1d4NQebLFn3XdL8aN85JaYuKGC6i zcfxcTVscnyWef7sSydqmJHQ1K7uJLQkYcvgg3AwJiwQoLzFFUfnRcpNqsRKI0p8gjkdqY Gu080831AB6DvnSgdQkEQ4dhMuMWnWqlu4CvH7xUCgf4WwK8+sCvDdjzeihJDvmo5WQdBg o7HVetgQPI9zodkJfz4L/TOJbARA0zixI/Cr90/2pG+DqO2ctEEqFg7vUH5WV0p2xJVuZS PnGz6Xed12TyA/O9be9hsVi1yA4dfFsepnx2/Kuig3jqb8whONs1jZr0ZBru1w== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4A33C7239B for ; Tue, 08 Oct 2024 22:29:48 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1syGov-0005pX-4Z; Tue, 08 Oct 2024 16:28:37 -0400 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 1syGos-0005om-RF for emacs-orgmode@gnu.org; Tue, 08 Oct 2024 16:28:35 -0400 Received: from mail-200161.simplelogin.co ([176.119.200.161]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1syGop-0003fq-3e for emacs-orgmode@gnu.org; Tue, 08 Oct 2024 16:28:33 -0400 ARC-Seal: i=1; a=rsa-sha256; d=simplelogin.co; s=arc-20230626; t=1728419307; cv=none; b=EDl8hgJyK1X/RWE5U07McHqg/o7thKzY6r8qplMWSVzGA3I31f97EtQPn5+3kWsivc7XP/O52q0y3DOPts8xD21DGgJiu00MJ5sKqCiFYRiSi7eUt4j/dA79NUhiYihSIplBMcrhihqgqXDXX2YkSxG1RuQ+HMBK2rz06+QOuzUFSiQ+nZ+5ZOzbk3ireL89hR9VMBZ5kAltn65P8OnTDuTzn855euFrtGJd7ydnQT+M3/dXFmGFFsY6e3UJxTWNMpXBYPb5IudjLKMk7qOFDQmyg8W+z7ZhkF28hcQxr3bZWsSJuJw9e5g/jtOV0uBDv3IYqhwkBUBdHGwBCIUKkg== ARC-Message-Signature: i=1; a=rsa-sha256; d=simplelogin.co; s=arc-20230626; t=1728419307; c=relaxed/simple; bh=VpF/7qQZlNSd4jldAlf14Q1TXkp/5y4fOpuQgLYcwys=; h=Date:Subject:In-Reply-To:From:To:Cc:References; b=lvmwxmlQ8EbQHQCyxOZB4WONrsQck7kg75Fc3Z9KW38B+liSBFjOzWO2M8DQKk2HIKQsGG+TOnkJ5QitNuwY5r7t7yTIJCrWmUR10S2gTDTyaY5IpDjAgjjeOb4pePpOT6g2jHr4XqgVPcPYFIcGmRD066XEF8/oB9ceeHSdQ2qGclapyMKmmkjF+RpbBKeBPM2V7kFbQ+7IGfOQfmPc5G2xbCGvrQQcHvtrJ2ahkkhmq6j6K+1pMbmIIzLhtLVgB997uf80SuUUL7yAGLJRWlaUogsCWGYUFyTqdN4g0omAQnedkBklbqhGfH7YM4SIaSXvECemiNnNOkuXroQ0kQ== ARC-Authentication-Results: i=1; mail.protonmail.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=slmails.com; s=dkim; t=1728419307; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=t5ALlmD4rLjL9DwwZkdLHPHUbZPFoFnvdP/wMQPaq9s=; b=hyuey+W92/H+kb8PFhEukkIgZLY9sCrjoxbFfG6W4Hq10KXX8Fd+q+GndSlA9XvZ/jX2A0 Xo/R0SRT/bPcHJ6aWbdsAsZgiJT1jFHnbOKq7gBfdXgudEh8JaCPmogBfYFswaiAb91iOe 4eLb4wuJ5dXZz2QBoOFZtMbRNqP03m8= Content-Type: multipart/alternative; boundary="------------PBeSAdDWhteJkYtT18yQRtUx" Date: Tue, 8 Oct 2024 22:28:16 +0200 Subject: Re: Problems inserting accentuated dates In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Kepa To: tomas@tuxteam.de Cc: "emacs-orgmode@gnu.org" Message-ID: <172841930717.7.12645677032572754371.457343308@slmails.com> References: <172755588276.7.1895309935715089772.447565547@slmails.com> <87iku3oh71.fsf@localhost> <172833374924.7.13249580957886311512.456206710@slmails.com> X-SimpleLogin-Type: Reply X-SimpleLogin-EmailLog-ID: 457343308 X-SimpleLogin-Want-Signing: yes Received-SPF: pass client-ip=176.119.200.161; envelope-from=sl.lmysyibugu3tgnbtgmydqlbage2dknzqgy4f2.n6ffhfdto44zi@slmails.com; helo=mail-200161.simplelogin.co 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, HTML_MESSAGE=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -5.98 X-Spam-Score: -5.98 X-Migadu-Queue-Id: 4A33C7239B X-Migadu-Scanner: mx10.migadu.com X-TUID: CxuCb9kVkccV --------------PBeSAdDWhteJkYtT18yQRtUx Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 08/10/2024 6:33, tomas at tuxteam.de wrote: > On Mon, Oct 07, 2024 at 08:42:24PM +0000, Kepa wrote: >> Hi, Ihor >> >> Sorry I don't know how mail lists work, so sometimes my answers don't go to the correct place. > This seems to work fine :) If I answer to the recived e-mail, it usually works. If try to answer from the mail archive, it usually doesn't work. > >> The cause was this line: >> (setq locale-coding-system 'utf-8) >> But I don't know why, and I would like to know. >> https://lists.gnu.org/archive/html/emacs-orgmode/2024-09/msg00313.html > OK. Asking Emacs, it tells us about the variable `locale-coding-system': > > locale-coding-system is a variable defined in ‘C source code’. > > Its value is ‘utf-8-unix’ > > Coding system to use with system messages. > Potentially also used for decoding keyboard input on X Windows, > and is used for encoding standard output and error streams. > > Probably introduced at or before Emacs version 21.1. > > Now my questions to you: > > - this \341 thing happens directly when you enter á? No, I've never had problems entering anything. > - you are using X on some operating system (e.g. Gnu/Linux, > some BSD)? Windows OS > - if yes: go to a terminal (XTerm), type in "locale" > and tell us what the output is. > > My guess is that your X (if you have one) is set up to trade in > an unibyte encoding (most probably iso-8859-1 aka Latin-1) and > you told Emacs to expect utf-8 (the iso-8859-1 encoding for "á" > is one byte represented in octal as 341 and an illegal byte in > an UTF-8 stream: Emacs is smart enough to have a way to keep those > internally, and that is how it shows them). > > But alas, my guesses aren't always right :) Probably it's that. Windows takes the dates from locale, or something... > > Cheers Thanks! --------------PBeSAdDWhteJkYtT18yQRtUx Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit


On 08/10/2024 6:33, tomas at tuxteam.de wrote:
On Mon, Oct 07, 2024 at 08:42:24PM +0000, Kepa wrote:
Hi, Ihor

Sorry I don't know how mail lists work, so sometimes my answers don't go to the correct place.
This seems to work fine :)
If I answer to the recived e-mail, it usually works. If try to answer from the mail archive, it usually doesn't work.

The cause was this line:
(setq locale-coding-system 'utf-8)
But I don't know why, and I would like to know.
https://lists.gnu.org/archive/html/emacs-orgmode/2024-09/msg00313.html
OK. Asking Emacs, it tells us about the variable `locale-coding-system':

  locale-coding-system is a variable defined in ‘C source code’.

  Its value is ‘utf-8-unix’

  Coding system to use with system messages.
  Potentially also used for decoding keyboard input on X Windows,
  and is used for encoding standard output and error streams.

  Probably introduced at or before Emacs version 21.1.

Now my questions to you:

- this \341 thing happens directly when you enter á?
No, I've never had problems entering anything.
- you are using X on some operating system (e.g. Gnu/Linux,
  some BSD)?
Windows OS
- if yes: go to a terminal (XTerm), type in "locale" <ENTER>
  and tell us what the output is.

My guess is that your X (if you have one) is set up to trade in
an unibyte encoding (most probably iso-8859-1 aka Latin-1) and
you told Emacs to expect utf-8 (the iso-8859-1 encoding for "á"
is one byte represented in octal as 341 and an illegal byte in
an UTF-8 stream: Emacs is smart enough to have a way to keep those
internally, and that is how it shows them).

But alas, my guesses aren't always right :)
Probably it's that. Windows takes the dates from locale, or something...

Cheers
Thanks!

    
--------------PBeSAdDWhteJkYtT18yQRtUx--