unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* encoding problem with Emacs notmuch.el
@ 2011-02-26 14:12 Erik Colson
  2011-02-26 15:26 ` David Bremner
  0 siblings, 1 reply; 4+ messages in thread
From: Erik Colson @ 2011-02-26 14:12 UTC (permalink / raw)
  To: notmuch

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

Ehlo,

I installed notmuch with the notmuch.el interface.
Works well except for an encoding problem.
In the *notmuch-search- buffer, encoding is wrong. This is also true for
the article buffers.

Look at this screenshot which shows the problem.

[-- Attachment #2: Screen shot 2011-02-26 at 15.05.08.png --]
[-- Type: image/png, Size: 23934 bytes --]

[-- Attachment #3: Type: text/plain, Size: 175 bytes --]


Please note that entering accentuated chars in the *notmuch-hello*
buffer works correctly and searches are executed correctly.

Any ideas ?

Best
-- 
erik colson
ecocode.net

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

* Re: encoding problem with Emacs notmuch.el
  2011-02-26 14:12 encoding problem with Emacs notmuch.el Erik Colson
@ 2011-02-26 15:26 ` David Bremner
  2011-09-21 12:59   ` encoding problem with Emacs notmuch.el (æøå) Petter Reinholdtsen
  0 siblings, 1 reply; 4+ messages in thread
From: David Bremner @ 2011-02-26 15:26 UTC (permalink / raw)
  To: Erik Colson, notmuch

On Sat, 26 Feb 2011 15:12:12 +0100, Erik Colson <eco@ecocode.net> wrote:
> Ehlo,
> 
> I installed notmuch with the notmuch.el interface.
> Works well except for an encoding problem.
> In the *notmuch-search- buffer, encoding is wrong. This is also true for
> the article buffers.

Hi Erik; 

Sorry this is a bit formulaic, but:

Can you tell us your locale, and maybe provide a test message, so that
we can try an duplicate the problem? Also can you try with a minimal
.emacs, just enough to load notmuch.

Thanks,

David

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

* Re: encoding problem with Emacs notmuch.el (æøå)
  2011-02-26 15:26 ` David Bremner
@ 2011-09-21 12:59   ` Petter Reinholdtsen
  2011-09-26 13:06     ` Petter Reinholdtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Petter Reinholdtsen @ 2011-09-21 12:59 UTC (permalink / raw)
  To: notmuch

[David Bremner]
> Hi Erik; 
>
> Sorry this is a bit formulaic, but:
>
> Can you tell us your locale, and maybe provide a test message, so that
> we can try an duplicate the problem? Also can you try with a minimal
> .emacs, just enough to load notmuch.

I see the same problem with Norwegian characters.  The UTF-8 bytes are
shown as ISO-8859 characters and not as the characters I expect.  To
allow you to test this, I added the norwegian characters in the
subject.  I use this on a machine with LC_CTYPE=nb_NO and 'locale
charmap' returning ISO-8859-1.

Here is another copy: æøåÆØÅ

This should show 3 lower case letters and 3 upper case letters, one
'ae' combination, one o with a slash from lower left to upper right,
and finally the letter a with a small ring above it.

(Hm, now I hope the characters are encoded as UTF-8.  Time will
tell. :)

Happy hacking,
-- 
Petter Reinholdtsen

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

* Re: encoding problem with Emacs notmuch.el (æøå)
  2011-09-21 12:59   ` encoding problem with Emacs notmuch.el (æøå) Petter Reinholdtsen
@ 2011-09-26 13:06     ` Petter Reinholdtsen
  0 siblings, 0 replies; 4+ messages in thread
From: Petter Reinholdtsen @ 2011-09-26 13:06 UTC (permalink / raw)
  To: notmuch


[Petter Reinholdtsen]
> (Hm, now I hope the characters are encoded as UTF-8.  Time will
> tell. :)

Hm, it ended up as ISO-8859-1.  Anwway, I was able to get around the
problem by commenting out this block from my .emacs file and start
emacs using LC_CTYPE=nb_NO.UTF-8:

  (set-language-environment "Latin-1")
  (if (featurep 'mule)
      (set-language-environment "Latin-1")
    (set-input-mode (car (current-input-mode))
                   (nth 1 (current-input-mode))
                   0)    
    (standard-display-european t))

Happy hacking,
-- 
Petter Reinholdtsen

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

end of thread, other threads:[~2011-09-26 14:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-26 14:12 encoding problem with Emacs notmuch.el Erik Colson
2011-02-26 15:26 ` David Bremner
2011-09-21 12:59   ` encoding problem with Emacs notmuch.el (æøå) Petter Reinholdtsen
2011-09-26 13:06     ` Petter Reinholdtsen

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.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).