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

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

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 :)

> 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 á?
- you are using X on some operating system (e.g. Gnu/Linux,
  some BSD)?
- 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 :)

Cheers
-- 
t

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

  reply	other threads:[~2024-10-08  4:34 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 [this message]
2024-10-08 20:28       ` Kepa
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=ZwS2B08aepckUpUH@tuxteam.de \
    --to=tomas@tuxteam.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=gnu.cognition199@slmails.com \
    --cc=yantar92@posteo.net \
    /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).