emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kepa <gnu.cognition199@slmails.com>
To: tomas@tuxteam.de
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Problems inserting accentuated dates
Date: Tue, 8 Oct 2024 22:28:16 +0200	[thread overview]
Message-ID: <172841930717.7.12645677032572754371.457343308@slmails.com> (raw)
In-Reply-To: <ZwS2B08aepckUpUH@tuxteam.de>

[-- Attachment #1: Type: text/plain, Size: 1830 bytes --]


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!

[-- Attachment #2: Type: text/html, Size: 3246 bytes --]

  reply	other threads:[~2024-10-08 20:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-28 20:37 Problems inserting accentuated dates Kepa
2024-10-07 19:18 ` Ihor Radchenko
2024-10-07 20:42   ` Kepa
2024-10-08  4:33     ` tomas
2024-10-08 20:28       ` Kepa [this message]
2024-10-09  4:31         ` tomas

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=172841930717.7.12645677032572754371.457343308@slmails.com \
    --to=gnu.cognition199@slmails.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=tomas@tuxteam.de \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).