Subject: Re: bug#12055: 24.1.50; Characters "á" and "é" are not correctly displayed on a Windows terminal

From: Juanma Barranquero <[email-masked]>
Date: Thu, 26 Jul 2012 18:24:14 +0200

I see the same.

> Do these two characters _always_ display incorrectly inside Emacs, or
> only when they are the first you type after starting the -nw session?

Always.

> Also, how did you type these characters,

' a  and  ' e  (' is on the Spanish keyboards, to type accented vowels).

> and what does Emacs say if
> you go to each one of them and type "C-u C-x ="?

             position: 206 of 210 (98%), column: 0
            character:   (displayed as  ) (codepoint 160, #o240, #xa0)
    preferred charset: unicode (Unicode (ISO10646))
code point in charset: 0xA0
               syntax: . 	which means: punctuation
             category: .:Base, b:Arabic, j:Japanese, l:Latin
             to input: type "C-x 8 RET HEX-CODEPOINT" or "C-x 8 RET NAME"
          buffer code: #xC2 #xA0
            file code: #xC2 #xA0 (encoded by coding system nil)
              display: terminal code #xA0
       hardcoded face: nobreak-space

Character code properties: customize what to show
  name: NO-BREAK SPACE
  old-name: NON-BREAKING SPACE
  general-category: Zs (Separator, Space)
  decomposition: (noBreak 32) (noBreak ' ')

             position: 210 of 210 (100%), column: 0
            character: ‚ (displayed as ‚) (codepoint 130, #o202, #x82)
    preferred charset: unicode (Unicode (ISO10646))
code point in charset: 0x82
               syntax: w 	which means: word
             category: l:Latin
             to input: type "C-x 8 RET HEX-CODEPOINT" or "C-x 8 RET NAME"
          buffer code: #xC2 #x82
            file code: #xC2 #x82 (encoded by coding system nil)
              display: not encodable for terminal

Character code properties: customize what to show
  name: <control>
  old-name: BREAK PERMITTED HERE
  general-category: Cc (Other, Control)
  decomposition: (130) ('‚')

> First, please always make a point of reporting bugs via
> "M-x report-emacs-bug RET", as that command collects and sends
> lots of useful information about your system and Emacs setup.
> This is especially important when non-ASCII characters are involved,
> as report-emacs-bug provides important information related to that.

Important settings:
  value of $LANG: C
  locale-coding-system: cp1252
  default enable-multibyte-characters: t

>   (terminal-coding-system)

cp1252

>   (keyboard-coding-system)

windows-1252-unix

>   w32-ansi-codepage

1252  (BTW, we're not very consistent here, the variable is w32-ansi-code-page)

>   (w32-get-console-codepage)

850

>   (w32-get-console-output-codepage)

850

> Finally, in the console outside Emacs type "chcp" at the Windows
> cmd.exe shell prompt, and tell what it says.

Página de códigos activa: 850

    Juanma