Gnus development mailing list
 help / color / mirror / Atom feed
* Проба пера 1 Prôbá pèrå 2
@ 2000-05-01 15:05 Vladimir Volovich
  2000-05-01 15:58 ` Shenghuo ZHU
  2000-05-03  1:49 ` Shenghuo ZHU
  0 siblings, 2 replies; 7+ messages in thread
From: Vladimir Volovich @ 2000-05-01 15:05 UTC (permalink / raw)


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

Hi Shenghuo,

When i try to send a message which contains a line given in a subject
(and in the following line):

Проба пера 1 

[-- Attachment #2: Type: text/plain, Size: 817 bytes --]

Prôbá pèrå 2

with UTF-8 setup:

(setq load-path (cons "/usr/share/emacs/site-lisp/mule-ucs" load-path))
(require 'un-define)
(eval-after-load "mm-util"
  '(setq mm-mime-mule-charset-alist
	 (append '((utf-8 cyrillic-iso8859-5 latin-iso8859-1)) mm-mime-mule-charset-alist)))
(setq mm-body-charset-encoding-alist
  '((iso-8859-1 . 8bit)
    (utf-8 . 8bit)
    (koi8-r . 8bit)
    (big5 . 8bit)))

When i try to raw preview a message (C-u M-m P) i get the something like

\320\237\321[  ] \320\277\320\265\321\200\320\260 1 Pr\303\264b\303\241 p\303\250r\303\245 2
where the   ^^^^ is an "Invalid character 013520, 5968, 0x1750" (as reported by C-u M-x =).

The "*Raw MIME preview ...*" buffer is not in raw encoding but in
cyrillic-koi8 (status line contains "-R:%*").

When i try to send a message, i get a warning:


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

The target text contains the following non ASCII character(s):
                  unknown: \237\321
              composition: [  ]
These can't be encoded safely by the coding system cyrillic-koi8.

Please select one from the following safe coding systems:
  raw-text

[-- Attachment #4: Type: text/plain, Size: 152 bytes --]

Which also looks like a bug. Previewing with M-m P looks Ok, though.

In some previous version of Gnus all worked well with UTF-8 messages...

Best,
v.

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: Проба пера 1 Prôbá pèrå 2
@ 2000-05-03  7:46 Janusz S. Bien
  2000-05-03 12:49 ` Shenghuo ZHU
  0 siblings, 1 reply; 7+ messages in thread
From: Janusz S. Bien @ 2000-05-03  7:46 UTC (permalink / raw)
  Cc: Shenghuo ZHU, Vladimir Volovich

Shenghuo ZHU <zsh@cs.rochester.edu> writes:

>>>>>> "VV" == Vladimir Volovich <vvv@vvv.vsu.ru> writes:
>
>VV> The "*Raw MIME preview ...*" buffer is not in raw encoding but in
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>VV> cyrillic-koi8 (status line contains "-R:%*").

This seems to be a common confusion (I am sensitive to it because it
took me quite long to realize it myself). The notion of encoding
(coding system) does not apply to the buffer content. Setting the
coding system to `cyrillic-koi8' affects only how the buffer context
will be represented when you save it in a file, put it in a
kill-ring etc. C-U C-X = allows you to check whether it is at all
possible to represent a character with the current coding system.

>It is because Emacs can not render some 8bit characters right.

There are only two kinds of buffer: multibyte and unibyte. In
multibyte buffer (as I mentioned in one of my previous postings) some
8-bit characters are interpreted as `leading bytes' starting a
multibyte representation of a character.

You cannot set a coding system for a unibyte buffer. If you see "-R"
(or just "--") in the status line, this means that you are looking at
a multibyte buffer.

>It is OK for me, possibly because I am using chinese-iso-8bit.
>Anyway, I force Gnus use a binary buffer to send mails, so please test
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>it again after checking out the CVS version.  

In other words, you use a unibyte buffer to send mails, and in a
unibyte buffer all 8-bit characters are just 8-bit characters. So
your solution used for `chinese-iso-8bit' should work also for
`cyrillic-koi8'.

Best regards

Janusz

---------------------------------------------------------------------
                     ,   
dr hab. Janusz S. Bien, prof. UW
Prof. Janusz S. Bien, Warsaw Uniwersity
---------------------------------------------------------------------
---------------------------------------------------------------------
Na tym koncie czytam i wysylam poczte i wiadomosci offline -
prosze nie oczekiwac szybkiej odpowiedzi!
Data w naglowku to data rozpoczecia pisania listu, a nie jego wyslania.
---------------------------------------------------------------------
On this account I read/post mail/news offline - do not expect 
an immediate answer!
The date in the header refers to the moment when I started to write
the letter, not to the moment when I sent it.
---------------------------------------------------------------------



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

end of thread, other threads:[~2000-05-03 12:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-01 15:05 Проба пера 1 Prôbá pèrå 2 Vladimir Volovich
2000-05-01 15:58 ` Shenghuo ZHU
2000-05-01 16:24   ` Vladimir Volovich
2000-05-03  1:59     ` Shenghuo ZHU
2000-05-03  1:49 ` Shenghuo ZHU
2000-05-03  7:46 Janusz S. Bien
2000-05-03 12:49 ` Shenghuo ZHU

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