unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* problems displaying utf-8-characters after reload
@ 2012-09-24 19:23 LanX
  2012-09-24 20:18 ` Peter Dyballa
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: LanX @ 2012-09-24 19:23 UTC (permalink / raw)
  To: help-gnu-emacs

Hi

Im writing perl code with POD dokumentation with german text.

typing umlauts is no problem, inspecting the letters in hexl-mode show perfect encoding, saving is no problem but after reloading I don't see the umlauts anymore but something like \301\156 (not the exact numbers, the file is at work). But checking in hexl-mode shows again that the coding is right but the display isn't.

Now after typing new umlauts I have no problem, but after saving and loading the problem starts again.

I was able to reproduce the problem with that special file using emacs -Q.

describe-coding-system shows utf-8-unix

Any ideas what to do?

cheers
  Rolf


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: problems displaying utf-8-characters after reload
  2012-09-24 19:23 problems displaying utf-8-characters after reload LanX
@ 2012-09-24 20:18 ` Peter Dyballa
  2012-09-24 21:02 ` Eli Zaretskii
       [not found] ` <mailman.9672.1348520546.855.help-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 9+ messages in thread
From: Peter Dyballa @ 2012-09-24 20:18 UTC (permalink / raw)
  To: LanX; +Cc: help-gnu-emacs


Am 24.09.2012 um 21:23 schrieb LanX:

> Any ideas what to do?

Report that bug! (In the Help menu you can find the "Send Bug Report…" entry.) From time to time I can see similar failures.

--
Mit friedvollen Grüßen

  Pete

Upgraded, adj.:
	Didn't work the first time.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: problems displaying utf-8-characters after reload
  2012-09-24 19:23 problems displaying utf-8-characters after reload LanX
  2012-09-24 20:18 ` Peter Dyballa
@ 2012-09-24 21:02 ` Eli Zaretskii
       [not found] ` <mailman.9672.1348520546.855.help-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 9+ messages in thread
From: Eli Zaretskii @ 2012-09-24 21:02 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Mon, 24 Sep 2012 12:23:41 -0700 (PDT)
> From: LanX <lanx.perl@googlemail.com>
> 
> I was able to reproduce the problem with that special file using emacs -Q.
> 
> describe-coding-system shows utf-8-unix
> 
> Any ideas what to do?

"C-x RET c latin-1 RET C-x C-f"

Or if want Emacs to do this automatically, put a 'coding:' cookie in
the file.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: problems displaying utf-8-characters after reload
       [not found] ` <mailman.9672.1348520546.855.help-gnu-emacs@gnu.org>
@ 2012-10-02 23:17   ` B. T. Raven
  2012-10-03  3:49     ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: B. T. Raven @ 2012-10-02 23:17 UTC (permalink / raw)
  To: help-gnu-emacs

Die Mon Sep 24 2012 16:02:15 GMT-0500 (Central Daylight Time) Eli
Zaretskii <eliz@gnu.org> scripsit:

>> Date: Mon, 24 Sep 2012 12:23:41 -0700 (PDT)
>> From: LanX <lanx.perl@googlemail.com>
>>
>> I was able to reproduce the problem with that special file using emacs -Q.
>>
>> describe-coding-system shows utf-8-unix
>>
>> Any ideas what to do?
> 
> "C-x RET c latin-1 RET C-x C-f"
> 
> Or if want Emacs to do this automatically, put a 'coding:' cookie in
> the file.
> 


This has always worked for me. I don't think there is a bug but there is
a residual mystery:

Why aren't the following exactly synonymous (as the descriptions would
lead us to believe):

C-x RET c latin-1 RET C-x C-f
C-x RET f latin-1 RET

I've found that the second one doesn't always work.

Btw, the coding cookie is:

;; -*- coding: utf-8 -*-

in first line or first eight lines of file, I can't remember which.

Ed


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: problems displaying utf-8-characters after reload
  2012-10-02 23:17   ` B. T. Raven
@ 2012-10-03  3:49     ` Eli Zaretskii
  2012-10-03  7:09       ` Andreas Röhler
  0 siblings, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2012-10-03  3:49 UTC (permalink / raw)
  To: help-gnu-emacs

> From: "B. T. Raven" <btraven@nihilo.net>
> Date: Tue, 02 Oct 2012 18:17:18 -0500
> 
> Why aren't the following exactly synonymous (as the descriptions would
> lead us to believe):
> 
> C-x RET c latin-1 RET C-x C-f
> C-x RET f latin-1 RET

The second one changes how the buffer will be _encoded_ when saved to
disk next time you type "C-x C-s".  The former one changes how the
file will be _decoded_ when you visit it.  IOW, the second one can
change nothing in how Emacs interprets the file while reading it into
the buffer.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: problems displaying utf-8-characters after reload
  2012-10-03  3:49     ` Eli Zaretskii
@ 2012-10-03  7:09       ` Andreas Röhler
  2012-10-03 17:22         ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: Andreas Röhler @ 2012-10-03  7:09 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 693 bytes --]

Am 03.10.2012 05:49, schrieb Eli Zaretskii:
>> From: "B. T. Raven" <btraven@nihilo.net>
>> Date: Tue, 02 Oct 2012 18:17:18 -0500
>>
>> Why aren't the following exactly synonymous (as the descriptions would
>> lead us to believe):
>>
>> C-x RET c latin-1 RET C-x C-f
>> C-x RET f latin-1 RET
>
> The second one changes how the buffer will be _encoded_ when saved to
> disk next time you type "C-x C-s".  The former one changes how the
> file will be _decoded_ when you visit it.  IOW, the second one can
> change nothing in how Emacs interprets the file while reading it into
> the buffer.
>
>

Hi Eli,

a related bug seems visible with emacs -Q  Python-shell - png attached.

Thanks,

Andreas

[-- Attachment #2: python-shell-display-bug.png --]
[-- Type: image/png, Size: 69961 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: problems displaying utf-8-characters after reload
  2012-10-03  7:09       ` Andreas Röhler
@ 2012-10-03 17:22         ` Eli Zaretskii
  2012-10-03 19:34           ` Andreas Röhler
  2012-10-04  5:41           ` Andreas Röhler
  0 siblings, 2 replies; 9+ messages in thread
From: Eli Zaretskii @ 2012-10-03 17:22 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Wed, 03 Oct 2012 09:09:56 +0200
> From: Andreas Röhler <andreas.roehler@easy-emacs.de>
> 
> a related bug seems visible with emacs -Q  Python-shell - png attached.

I'm quite sure it's because Python-shell, whatever that is, sets up an
incorrect coding-systems for decoding output from Python.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: problems displaying utf-8-characters after reload
  2012-10-03 17:22         ` Eli Zaretskii
@ 2012-10-03 19:34           ` Andreas Röhler
  2012-10-04  5:41           ` Andreas Röhler
  1 sibling, 0 replies; 9+ messages in thread
From: Andreas Röhler @ 2012-10-03 19:34 UTC (permalink / raw)
  To: help-gnu-emacs

Am 03.10.2012 19:22, schrieb Eli Zaretskii:
>> Date: Wed, 03 Oct 2012 09:09:56 +0200
>> From: Andreas Röhler <andreas.roehler@easy-emacs.de>
>>
>> a related bug seems visible with emacs -Q  Python-shell - png attached.
>
> I'm quite sure it's because Python-shell, whatever that is,

when starting a Python interpreter from python-mode, you get a buffer in comint-mode AFAIU

sets up an
> incorrect coding-systems for decoding output from Python.
>
>
>

filed a bug-report which should give some more info

12573@debbugs.gnu.org





^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: problems displaying utf-8-characters after reload
  2012-10-03 17:22         ` Eli Zaretskii
  2012-10-03 19:34           ` Andreas Röhler
@ 2012-10-04  5:41           ` Andreas Röhler
  1 sibling, 0 replies; 9+ messages in thread
From: Andreas Röhler @ 2012-10-04  5:41 UTC (permalink / raw)
  To: help-gnu-emacs

Am 03.10.2012 19:22, schrieb Eli Zaretskii:
>> Date: Wed, 03 Oct 2012 09:09:56 +0200
>> From: Andreas Röhler <andreas.roehler@easy-emacs.de>
>>
>> a related bug seems visible with emacs -Q  Python-shell - png attached.
>
> I'm quite sure it's because Python-shell, whatever that is, sets up an
> incorrect coding-systems for decoding output from Python.
>
>
>

my mistake: this form needs a Python3, while reported when Python2 was used.

Sorry,

Andreas



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-10-04  5:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-24 19:23 problems displaying utf-8-characters after reload LanX
2012-09-24 20:18 ` Peter Dyballa
2012-09-24 21:02 ` Eli Zaretskii
     [not found] ` <mailman.9672.1348520546.855.help-gnu-emacs@gnu.org>
2012-10-02 23:17   ` B. T. Raven
2012-10-03  3:49     ` Eli Zaretskii
2012-10-03  7:09       ` Andreas Röhler
2012-10-03 17:22         ` Eli Zaretskii
2012-10-03 19:34           ` Andreas Röhler
2012-10-04  5:41           ` Andreas Röhler

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).