[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#55727: 29.0.50; Incorrect zero symbol transcoding between applicatio
From: |
Eli Zaretskii |
Subject: |
bug#55727: 29.0.50; Incorrect zero symbol transcoding between applications |
Date: |
Mon, 30 May 2022 21:09:49 +0300 |
> From: Петров Андрей <an.petrov@pay-lab.ru>
> CC: "luangruo@yahoo.com" <luangruo@yahoo.com>, "55727-done@debbugs.gnu.org"
> <55727-done@debbugs.gnu.org>
> Date: Mon, 30 May 2022 16:23:46 +0000
>
> Hi, Eli!
>
> Looks like I have to use hex, base64 or other ASCII encodings.
> It seems that I will use something like this:
>
> (defun my-escape-char (c)
> (insert (if (< c ?\s) (format "\\%03o" c) c)))
>
> (print "000\000000" 'my-escape-char)
Emacs has base64-encode-region and base64-decode-region, so you could
use that instead.
bug#55727: 29.0.50; Incorrect zero symbol transcoding between applications, Eli Zaretskii, 2022/05/30