GNU bug report logs - #55727
29.0.50; Incorrect zero symbol transcoding between applications

Previous Next

Package: emacs;

Reported by: Петров Андрей <an.petrov <at> pay-lab.ru>

Date: Mon, 30 May 2022 13:10:01 UTC

Severity: normal

Found in version 29.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Петров Андрей <an.petrov <at> pay-lab.ru>
Cc: luangruo <at> yahoo.com, 55727 <at> debbugs.gnu.org
Subject: bug#55727: 29.0.50; Incorrect zero symbol transcoding between applications
Date: Mon, 30 May 2022 21:09:49 +0300
> From: Петров Андрей <an.petrov <at> pay-lab.ru>
> CC: "luangruo <at> yahoo.com" <luangruo <at> yahoo.com>, "55727-done <at> debbugs.gnu.org"
> 	<55727-done <at> 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.




This bug report was last modified 2 years and 354 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.