all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Basile Starynkevitch <basile@starynkevitch.net>
To: help-gnu-emacs@gnu.org
Subject: Re: UTF-8 characters in comments of a program
Date: Sat, 21 Oct 2023 17:54:34 +0200	[thread overview]
Message-ID: <3cac5fe6-35a2-4dd5-bc04-53b32291c1f8@starynkevitch.net> (raw)
In-Reply-To: <83wmvgqku2.fsf@gnu.org>


On 10/21/23 13:24, Eli Zaretskii wrote:
>> Date: Sat, 21 Oct 2023 10:48:10 +0000
>> From: Heime <heimeborgia@protonmail.com>
>> Cc: help-gnu-emacs@gnu.org
>>
>>> AFAIK, C/C++ compilers support this only in recent versions.
>> Would you know if there is support for languages in Gnu GCC ?
> Depends on the version, and I don't remember which one started
> supporting it, sorry.


Recent versions (after GCC 10, and probably a few versions before) are 
supporting UTF-8 in comments and literal strings.

>
>>> For Emacs Lisp, the answer is YES, as the default encoding of ELisp files is UTF-8.
>> My difficulty is how am I going to introduce them to an elisp source file.


M-x insert-char

or copy/paste on Linux from a charmap or a browser.

> Just type ? followed by the character, which you can type via "C-x 8 RET"
> followed by the Unicode codepoint in hex.
>

NB. My pet open source software (work in progress) is the RefPerSys 
GPLv3+ inference engine project on https://github.com/RefPerSys/RefPerSys/

-- 
Basile Starynkevitch
  <basile@starynkevitch.net>
(only mine opinions / les opinions sont miennes uniquement)
92340 Bourg-la-Reine, France
web page: starynkevitch.net/Basile/




  parent reply	other threads:[~2023-10-21 15:54 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-20 22:53 UTF-8 characters in comments of a program Heime
2023-10-21  7:48 ` Eli Zaretskii
2023-10-21 10:48   ` Heime
2023-10-21 11:24     ` Eli Zaretskii
2023-10-21 11:36       ` Heime
2023-10-21 11:46         ` Eli Zaretskii
2023-10-21 11:51           ` Heime
2023-10-23 15:39             ` Leo Butler
2023-10-21 15:54       ` Basile Starynkevitch [this message]
2023-10-21 13:19   ` Jonathon McKitrick via Users list for the GNU Emacs text editor
2023-10-21 13:49     ` Emanuel Berg
2023-10-22 11:04       ` Heime
2023-10-22 11:30         ` Emanuel Berg
2023-10-22 13:44       ` Eric S Fraga
2023-10-23  5:51         ` Emanuel Berg
2023-10-21 10:25 ` Emanuel Berg

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

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

  git send-email \
    --in-reply-to=3cac5fe6-35a2-4dd5-bc04-53b32291c1f8@starynkevitch.net \
    --to=basile@starynkevitch.net \
    --cc=help-gnu-emacs@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.