emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnus: incorrect conversion of Subject and From field from utf-8 to koi8-


From: Boris B. Samorodov
Subject: gnus: incorrect conversion of Subject and From field from utf-8 to koi8-r
Date: Thu, 13 Oct 2005 20:56:24 +0400

Symptoms:


I do have a letter with the next Subject:
-----
Subject: 
=?UTF-8?B?W2lwdC5ydSAjMTYzXSDQkNCy0YLQvtCe0YLQstC10YI6INCc0KHQmjog0KHQ?= 
=?UTF-8?B?nyDRgtC10YHRgg==?=
-----

In command-line mode I can do...

$ echo 
"W2lwdC5ydSAjMTYzXSDQkNCy0YLQvtCe0YLQstC10YI6INCc0KHQmjog0KHQnyDRgtC10YHRgg==" 
| base64 -d | iconv -f utf-8

...and receive the answer:

[ipt.ru #163] АвтоОтвет: МСК: СП тест

But gnus (from cvs as emacs) shows the next line...

Subject: [ipt.ru #163] АвтоОтвет: МСК: СП тест

...which is wrong.

The bug appeared to be at illegal concatenation of
=?UTF-8?<foo> =?UTF-8?<bar> parts of the Subject.

The same bug is at From field (and maybe somewhere else).




In GNU Emacs 22.0.50.4 (i386-unknown-freebsd5.4, X toolkit, Xaw3d scroll bars)
 of 2005-10-08 on srv.sem.ipt.ru
X server distributor `The X.Org Foundation', version 11.0.60802000
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: ru_RU.KOI8-R
  locale-coding-system: cyrillic-koi8
  default-enable-multibyte-characters: t

Major mode: Group

Minor modes in effect:
  gnus-undo-mode: t
  show-paren-mode: t
  display-time-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  auto-compression-mode: t
  menu-bar-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <next> <prior> <prior> <prior> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <down> <down> 
<down> <down> <down> <down> <down> <help-echo> <help-echo> 
<tool-bar> <kill-buffer> <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> <help-echo> 
<menu-bar> <file> <one-window> M-x r e p <tab> o <tab> 
r <tab> <return>

Recent messages:
Loading ~/.eudc-options...done
Loading jit-lock...done
For information about the GNU Project and its goals, type C-h C-p.
Making completion list...
Loading emacsbug...done
Loading flyspell...done
Starting new Ispell process...
Loading mailalias...done
Error in post-command-hook: (wrong-type-argument stringp nil)
Making completion list... [2 times]




reply via email to

[Prev in Thread] Current Thread [Next in Thread]