* bug#12573: 24.2; char displayed as number
@ 2012-10-03 19:22 Andreas Röhler
2012-10-03 21:03 ` Stefan Monnier
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Röhler @ 2012-10-03 19:22 UTC (permalink / raw)
To: 12573
with Emacs -Q
in python-mode, in interpreter shell
copyright sign is displayed as number
>>> print('\xA9')
>>>
When trying to save this message, Emacs says:
These default coding systems were tried to encode text
in the buffer `copyright-sign-displayed-as-number.txt':
(utf-8-emacs-unix (261 . 4194217)) (utf-8-unix (261 . 4194217))
However, each of them encountered characters it couldn't encode:
utf-8-emacs-unix cannot encode these:
utf-8-unix cannot encode these:
Click on a character (or switch to this window by `C-x o'
and select the characters by RET) to jump to the place it appears,
where `C-u C-x =' will give information about it.
Select one of the safe coding systems listed below,
or cancel the writing with C-g and edit the buffer
to remove or modify the problematic characters,
or specify any other coding system (and risk losing
the problematic characters).
raw-text emacs-mule no-conversion
When examining the char with C-u C-x =
get
position: 261 of 3745 (7%), column: 0
character: (displayed as ) (codepoint 4194217, #o17777651, #x3fffa9)
preferred charset: eight-bit (Raw bytes 128-255)
code point in charset: 0xA9
syntax: w which means: word
category: L:Left-to-right (strong)
buffer code: #xA9
file code: not encodable by coding system utf-8-emacs
display: no font available
Character code properties: customize what to show
general-category: Cn (Other, Not Assigned)
decomposition: (4194217) ('')
There are text properties here:
field output
fontified t
front-sticky (field inhibit-line-move-field-capture)
inhibit-line-move-field-capture t
rear-nonsticky t
;;;;;;;;;
In GNU Emacs 24.2.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2012-08-15
Windowing system distributor `The X.Org Foundation', version 11.0.10903000
Configured using:
`configure 'CFLAGS=-g -O''
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: de_DE.UTF-8
value of $XMODIFIERS: @im=local
locale-coding-system: utf-8-unix
default enable-multibyte-characters: t
Major mode: Inferior Python
Minor modes in effect:
compilation-shell-minor-mode: t
tooltip-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
<help-echo> <help-echo> <help-echo> C-x C-f <M-backspace>
<M-backspace> e i n . p y <return> C-c ! <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <menu-bar> <Python> <Switch to interpreter>
M-r p r i n C-g C-h <down-mouse-1> <mouse-1> <help-echo>
C-y <backspace> <return> C-x 1 M-x r e p o r t - e
m a c s - b u g <return>
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
(New file)
Mark set
Load-path shadows:
None found.
Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils misearch multi-isearch compile python-21 python
easymenu comint regexp-opt ansi-color ring time-date tooltip ediff-hook
vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image
fringe lisp-mode register page menu-bar rfn-eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev minibuffer loaddefs button faces cus-face files text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dbusbind
dynamic-setting system-font-setting font-render-setting x-toolkit x
multi-tty emacs)
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#12573: 24.2; char displayed as number
2012-10-03 19:22 bug#12573: 24.2; char displayed as number Andreas Röhler
@ 2012-10-03 21:03 ` Stefan Monnier
2012-10-04 5:40 ` Andreas Röhler
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2012-10-03 21:03 UTC (permalink / raw)
To: Andreas Röhler; +Cc: 12573
> in python-mode, in interpreter shell
> copyright sign is displayed as number
>>>> print('\xA9')
As you sure the above specifies the copyright char and not the byte 169?
Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#12573: 24.2; char displayed as number
2012-10-03 21:03 ` Stefan Monnier
@ 2012-10-04 5:40 ` Andreas Röhler
0 siblings, 0 replies; 3+ messages in thread
From: Andreas Röhler @ 2012-10-04 5:40 UTC (permalink / raw)
To: Stefan Monnier; +Cc: 12573
Am 03.10.2012 23:03, schrieb Stefan Monnier:
>> in python-mode, in interpreter shell
>> copyright sign is displayed as number
>
>>>>> print('\xA9')
>
> As you sure the above specifies the copyright char and not the byte 169?
>
>
> Stefan
>
yes, but made another mistake: this form needs a Python3, while reported when Python2 was used.
Please close, sorry,
Andreas
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-10-04 5:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-03 19:22 bug#12573: 24.2; char displayed as number Andreas Röhler
2012-10-03 21:03 ` Stefan Monnier
2012-10-04 5:40 ` Andreas Röhler
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.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).