GNU bug report logs -
#7279
24.0.50; print-escape-multibyte not honored
Previous Next
Reported by: Helmut Eller <eller.helmut <at> gmail.com>
Date: Mon, 25 Oct 2010 11:36:01 UTC
Severity: normal
Tags: notabug
Found in version 24.0.50
Done: npostavs <at> users.sourceforge.net
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 7279 in the body.
You can then email your comments to 7279 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7279
; Package
emacs
.
(Mon, 25 Oct 2010 11:36:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Helmut Eller <eller.helmut <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 25 Oct 2010 11:36:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
This code:
(with-temp-file "/tmp/x.x"
(let ((print-escape-multibyte nil))
(prin1 (string ?\x03bb) (current-buffer))))
writes "\x03bb" to the file, i.e. it seems to ignore the value
of print-escape-multibyte.
In GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.12.12)
of 2010-10-23 on ix
Windowing system distributor `The X.Org Foundation', version 11.0.10402000
configured using `configure '--with-gif=no''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: en_US
value of $XMODIFIERS: nil
locale-coding-system: iso-latin-1-unix
default enable-multibyte-characters: nil
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7279
; Package
emacs
.
(Mon, 25 Oct 2010 17:59:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 7279 <at> debbugs.gnu.org (full text, mbox):
Helmut Eller <eller.helmut <at> gmail.com> writes:
> This code:
>
> (with-temp-file "/tmp/x.x"
> (let ((print-escape-multibyte nil))
> (prin1 (string ?\x03bb) (current-buffer))))
>
> writes "\x03bb" to the file, i.e. it seems to ignore the value
> of print-escape-multibyte.
I cannot reprodoce that. I also tried setting print-escape-multibyte to
t and got the expected effect. Note that print-escape-multibyte is nil
by default anyway.
Andreas.
--
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7279
; Package
emacs
.
(Mon, 25 Oct 2010 19:01:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 7279 <at> debbugs.gnu.org (full text, mbox):
* Andreas Schwab [2010-10-25 18:02] writes:
> Helmut Eller <eller.helmut <at> gmail.com> writes:
>
>> This code:
>>
>> (with-temp-file "/tmp/x.x"
>> (let ((print-escape-multibyte nil))
>> (prin1 (string ?\x03bb) (current-buffer))))
>>
>> writes "\x03bb" to the file, i.e. it seems to ignore the value
>> of print-escape-multibyte.
>
> I cannot reprodoce that. I also tried setting print-escape-multibyte to
> t and got the expected effect. Note that print-escape-multibyte is nil
> by default anyway.
And this?
(with-temp-file "/tmp/x.x"
(set-buffer-multibyte nil)
(let ((print-escape-multibyte nil))
(prin1 (string ?\x80) (current-buffer))))
Helmut
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#7279
; Package
emacs
.
(Mon, 30 Jan 2017 07:12:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 7279 <at> debbugs.gnu.org (full text, mbox):
tags 7279 notabug
close 7279
quit
Helmut Eller <eller.helmut <at> gmail.com> writes:
> * Andreas Schwab [2010-10-25 18:02] writes:
>
>> Helmut Eller <eller.helmut <at> gmail.com> writes:
>>
>>> This code:
>>>
>>> (with-temp-file "/tmp/x.x"
>>> (let ((print-escape-multibyte nil))
>>> (prin1 (string ?\x03bb) (current-buffer))))
>>>
>>> writes "\x03bb" to the file, i.e. it seems to ignore the value
>>> of print-escape-multibyte.
>>
>> I cannot reprodoce that. I also tried setting print-escape-multibyte to
>> t and got the expected effect. Note that print-escape-multibyte is nil
>> by default anyway.
>
> And this?
>
> (with-temp-file "/tmp/x.x"
> (set-buffer-multibyte nil)
> (let ((print-escape-multibyte nil))
> (prin1 (string ?\x80) (current-buffer))))
>
You can't print a multibyte string into a unibyte buffer, this works:
(with-temp-file "/tmp/x.x"
(set-buffer-multibyte nil)
(let ((print-escape-multibyte nil))
(prin1 (unibyte-string ?\x80) (current-buffer))))
or if you want to handle unicode you must choose an encoding:
(with-temp-file "/tmp/x.x"
(set-buffer-multibyte nil)
(let ((print-escape-multibyte nil))
(prin1 (encode-coding-string (string ?\x03bb) 'utf-8)
(current-buffer))))
Added tag(s) notabug.
Request was from
npostavs <at> users.sourceforge.net
to
control <at> debbugs.gnu.org
.
(Mon, 30 Jan 2017 07:12:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
7279 <at> debbugs.gnu.org and Helmut Eller <eller.helmut <at> gmail.com>
Request was from
npostavs <at> users.sourceforge.net
to
control <at> debbugs.gnu.org
.
(Mon, 30 Jan 2017 07:12:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 27 Feb 2017 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 8 years and 117 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.