GNU bug report logs - #12573
24.2; char displayed as number

Previous Next

Package: emacs;

Reported by: Andreas Röhler <andreas.roehler <at> easy-emacs.de>

Date: Wed, 3 Oct 2012 19:23:01 UTC

Severity: minor

Tags: notabug

Found in version 24.2

Done: Glenn Morris <rgm <at> gnu.org>

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 12573 in the body.
You can then email your comments to 12573 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#12573; Package emacs. (Wed, 03 Oct 2012 19:23:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andreas Röhler <andreas.roehler <at> easy-emacs.de>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 03 Oct 2012 19:23:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.2; char displayed as number
Date: Wed, 03 Oct 2012 21:22:13 +0200
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)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12573; Package emacs. (Wed, 03 Oct 2012 21:04:01 GMT) Full text and rfc822 format available.

Message #8 received at 12573 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: 12573 <at> debbugs.gnu.org
Subject: Re: bug#12573: 24.2; char displayed as number
Date: Wed, 03 Oct 2012 17:03:24 -0400
> 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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12573; Package emacs. (Thu, 04 Oct 2012 05:41:02 GMT) Full text and rfc822 format available.

Message #11 received at 12573 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 12573 <at> debbugs.gnu.org
Subject: Re: bug#12573: 24.2; char displayed as number
Date: Thu, 04 Oct 2012 07:40:22 +0200
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




Added tag(s) notabug. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 04 Oct 2012 15:56:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 12573 <at> debbugs.gnu.org and Andreas Röhler <andreas.roehler <at> easy-emacs.de> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 04 Oct 2012 15:56:01 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. (Fri, 02 Nov 2012 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 290 days ago.

Previous Next


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