Gnus development mailing list
 help / color / mirror / Atom feed
* Gnus not choosing latin9 if euro sign is present
@ 2005-09-14 19:18 Kevin Bube
  2005-09-14 20:11 ` Jesper Harder
  0 siblings, 1 reply; 9+ messages in thread
From: Kevin Bube @ 2005-09-14 19:18 UTC (permalink / raw)


Hi all,

last week I tested the CVS versions of Gnus and Emacs and noticed that
if the message contains a euro sign it gets encoded as iso8859-1. If it
only contains umlauts or other non Ascii characters it is encoded as
iso8859-15. It should be the other way round...

current-language-environment is "Latin-9". I suspect it is a problem
with the current CVS emacs, as the problem does not occur with 21.4.

If I do (setq mm-coding-system-priorities '(iso-latin-9 mule-utf-8)) the
messages containing the euro signs get encoded as utf-8.

Is this a know problem?

Regards,

Kevin




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

* Re: Gnus not choosing latin9 if euro sign is present
  2005-09-14 19:18 Gnus not choosing latin9 if euro sign is present Kevin Bube
@ 2005-09-14 20:11 ` Jesper Harder
  2005-09-15  9:21   ` Kevin Bube
  0 siblings, 1 reply; 9+ messages in thread
From: Jesper Harder @ 2005-09-14 20:11 UTC (permalink / raw)


Kevin Bube <kbube@despammed.com> writes:

> last week I tested the CVS versions of Gnus and Emacs and noticed that
> if the message contains a euro sign it gets encoded as iso8859-1. If it
> only contains umlauts or other non Ascii characters it is encoded as
> iso8859-15. It should be the other way round...
>
> Is this a know problem?

I can't reproduce.  When I set my language environment to latin-9, the
message is encoded as latin-9 if it contains €.




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

* Re: Gnus not choosing latin9 if euro sign is present
  2005-09-14 20:11 ` Jesper Harder
@ 2005-09-15  9:21   ` Kevin Bube
  2005-09-15 15:06     ` Jesper Harder
  0 siblings, 1 reply; 9+ messages in thread
From: Kevin Bube @ 2005-09-15  9:21 UTC (permalink / raw)


Jesper Harder <jesper.harder@gmail.com> writes:

> I can't reproduce.  When I set my language environment to latin-9, the
> message is encoded as latin-9 if it contains €.

Hmm, I will try it again with a minimal config file and see what
happens. What perplexes me is that the config worked with the old
emacs.

Kevin




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

* Re: Gnus not choosing latin9 if euro sign is present
  2005-09-15  9:21   ` Kevin Bube
@ 2005-09-15 15:06     ` Jesper Harder
  2005-09-15 17:35       ` Kevin Bube
  0 siblings, 1 reply; 9+ messages in thread
From: Jesper Harder @ 2005-09-15 15:06 UTC (permalink / raw)


Kevin Bube <kbube@despammed.com> writes:

> Jesper Harder <jesper.harder@gmail.com> writes:
>
>> I can't reproduce.  When I set my language environment to latin-9, the
>> message is encoded as latin-9 if it contains €.
>
> Hmm, I will try it again with a minimal config file and see what
> happens. What perplexes me is that the config worked with the old
> emacs.

Note that your reply (which contains €) was sent using latin-9.  So,
at least for replies it seems to work correctly.




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

* Re: Gnus not choosing latin9 if euro sign is present
  2005-09-15 15:06     ` Jesper Harder
@ 2005-09-15 17:35       ` Kevin Bube
  2005-09-30 20:35         ` Reiner Steib
  0 siblings, 1 reply; 9+ messages in thread
From: Kevin Bube @ 2005-09-15 17:35 UTC (permalink / raw)


Jesper Harder <jesper.harder@gmail.com> writes:

> Note that your reply (which contains €) was sent using latin-9.  So,
> at least for replies it seems to work correctly.

That was from another machine with emacs 21.3, so is this :-)

I now tested with minimal .emacs and .gnus:

,----[.emacs]
| (set-language-environment "Latin-9")
| (setq load-path (cons "/home/kevin/src/lisp/cvs-gnus/lisp" load-path))
`----
,----[.gnus]
| ; -*-Emacs-Lisp-*-
| (setq gnus-select-method '(nnml ""))
| (setq gnus-secondary-select-methods '((nntp "news.t-online.de")))
| (setq mail-sources '((maildir :path "/home/kevin/.Maildir")))
`----

I then start up emacs with

emacs --no-site-file -fn  -*-fixed-medium-r-*--*-140-*-iso8859-15 -f gnus

The problem still persits: Mails with euro sign get

Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Mails with umlauts get

Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: quoted-printable

Any ideas somebody?

Kevin




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

* Re: Gnus not choosing latin9 if euro sign is present
  2005-09-15 17:35       ` Kevin Bube
@ 2005-09-30 20:35         ` Reiner Steib
  2005-09-30 21:41           ` Kevin Bube
  0 siblings, 1 reply; 9+ messages in thread
From: Reiner Steib @ 2005-09-30 20:35 UTC (permalink / raw)


On Thu, Sep 15 2005, Kevin Bube wrote:

> I now tested with minimal .emacs and .gnus:
>
> ,----[.emacs]
> | (set-language-environment "Latin-9")
> | (setq load-path (cons "/home/kevin/src/lisp/cvs-gnus/lisp" load-path))
> `----
> ,----[.gnus]
> | ; -*-Emacs-Lisp-*-
> | (setq gnus-select-method '(nnml ""))
> | (setq gnus-secondary-select-methods '((nntp "news.t-online.de")))
> | (setq mail-sources '((maildir :path "/home/kevin/.Maildir")))
> `----
>
> I then start up emacs with
>
> emacs --no-site-file -fn  -*-fixed-medium-r-*--*-140-*-iso8859-15 -f gnus

You shouldn't use iso8859-15 here:

,----[ (info "(emacs)Font X") ]
| CHARSET
|      This is the character set that the font depicts.  Normally you
|      should use `iso8859-1'.
`----

> The problem still persits: Mails with euro sign get
>
> Content-Type: text/plain; charset=iso-8859-1
> Content-Transfer-Encoding: quoted-printable

My guess is that you inserted a currency sign (¤) instead of a EUR.
But it is displayed as EUR sign because of your bogus font setting.
As currency is not included in iso-8859-15, Gnus chooses iso-8859-1.

You can find out which char it is, by using `C-u C-x =' on the char.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/




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

* Re: Gnus not choosing latin9 if euro sign is present
  2005-09-30 20:35         ` Reiner Steib
@ 2005-09-30 21:41           ` Kevin Bube
  2005-10-01 12:25             ` Reiner Steib
  0 siblings, 1 reply; 9+ messages in thread
From: Kevin Bube @ 2005-09-30 21:41 UTC (permalink / raw)


Reiner Steib <reinersteib+gmane@imap.cc> writes:
> On Thu, Sep 15 2005, Kevin Bube wrote:

>> emacs --no-site-file -fn  -*-fixed-medium-r-*--*-140-*-iso8859-15 -f gnus
>
> You shouldn't use iso8859-15 here:
>

[use iso8859-1]

>
> My guess is that you inserted a currency sign (¤) instead of a EUR.
> But it is displayed as EUR sign because of your bogus font setting.
> As currency is not included in iso-8859-15, Gnus chooses iso-8859-1.
>
> You can find out which char it is, by using `C-u C-x =' on the char.

  character: ¤ (04244, 2212, 0x8a4, U+00A4)
    charset: [latin-iso8859-1]
	     (Right-Hand Part of Latin Alphabet 1 (ISO/IEC 8859-1): ISO-IR-100.)
 code point: [36]
     syntax: w 	which means: word
   category: l:Latin  
buffer code: 0x81 0xA4
  file code: 0xA4 (encoded by coding system iso-8859-1-unix)
    display: by this font (glyph code)
     -Misc-Fixed-Medium-R-Normal--15-140-75-75-C-90-ISO8859-15 (0xA4)

Seems you are right. I thought this is intended and the only difference
between iso8859-1 and iso8859-15 is that the currency sign is replaced
by the Euro sign. This would mean that the character code is the same
and it only depends on the screen font what is displayed. So emacs has
no way to determine if you want a currency or euro sign.

What font do I have to choose if I want to get a euro sign?

Thanks,

Kevin




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

* Re: Gnus not choosing latin9 if euro sign is present
  2005-09-30 21:41           ` Kevin Bube
@ 2005-10-01 12:25             ` Reiner Steib
  2005-10-03 16:42               ` Kevin Bube
  0 siblings, 1 reply; 9+ messages in thread
From: Reiner Steib @ 2005-10-01 12:25 UTC (permalink / raw)


On Fri, Sep 30 2005, Kevin Bube wrote:

>   character: ¤ (04244, 2212, 0x8a4, U+00A4)
>     charset: [latin-iso8859-1]
> 	     (Right-Hand Part of Latin Alphabet 1 (ISO/IEC 8859-1): ISO-IR-100.)
>  code point: [36]
>      syntax: w 	which means: word
>    category: l:Latin  
> buffer code: 0x81 0xA4
>   file code: 0xA4 (encoded by coding system iso-8859-1-unix)
>     display: by this font (glyph code)
>      -Misc-Fixed-Medium-R-Normal--15-140-75-75-C-90-ISO8859-15 (0xA4)
>
> Seems you are right. I thought this is intended and the only difference
> between iso8859-1 and iso8859-15 is that the currency sign is replaced
> by the Euro sign. 

iso-8859-1 and iso-8859-15 differ at 8 positions.

> This would mean that the character code is the same and it only
> depends on the screen font what is displayed. So emacs has no way to
> determine if you want a currency or euro sign.

This is not correct.  Eval (C-x C-e behing the expression) the
following expressions and try `C-u C-x =':

(insert (string (make-char 'latin-iso8859-1  164)))
(insert (string (make-char 'latin-iso8859-15 164)))

> What font do I have to choose if I want to get a euro sign?

E.g. -*-fixed-medium-r-*--*-140-*-iso8859-1.  Emacs will automatically
select iso8859-15 when displaying iso8859-15 characters.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/




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

* Re: Gnus not choosing latin9 if euro sign is present
  2005-10-01 12:25             ` Reiner Steib
@ 2005-10-03 16:42               ` Kevin Bube
  0 siblings, 0 replies; 9+ messages in thread
From: Kevin Bube @ 2005-10-03 16:42 UTC (permalink / raw)


Reiner Steib <reinersteib+gmane@imap.cc> writes:
> On Fri, Sep 30 2005, Kevin Bube wrote:

>> This would mean that the character code is the same and it only
>> depends on the screen font what is displayed. So emacs has no way to
>> determine if you want a currency or euro sign.
>
> This is not correct.  Eval (C-x C-e behing the expression) the
> following expressions and try `C-u C-x =':
>
> (insert (string (make-char 'latin-iso8859-1  164)))
> (insert (string (make-char 'latin-iso8859-15 164)))

Very interesting. Thanks for the example. Seems I have to read the mule
section in the emacs manual again...

>> What font do I have to choose if I want to get a euro sign?
>
> E.g. -*-fixed-medium-r-*--*-140-*-iso8859-1.  Emacs will automatically
> select iso8859-15 when displaying iso8859-15 characters.

Ahh. Okay, I tried this and it works. Thanks.

Regards,

Kevin




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

end of thread, other threads:[~2005-10-03 16:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-14 19:18 Gnus not choosing latin9 if euro sign is present Kevin Bube
2005-09-14 20:11 ` Jesper Harder
2005-09-15  9:21   ` Kevin Bube
2005-09-15 15:06     ` Jesper Harder
2005-09-15 17:35       ` Kevin Bube
2005-09-30 20:35         ` Reiner Steib
2005-09-30 21:41           ` Kevin Bube
2005-10-01 12:25             ` Reiner Steib
2005-10-03 16:42               ` Kevin Bube

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 NNTP newsgroup(s).