|
From: | Peter Dyballa |
Subject: | Re: revert-buffer-with-coding-system fails to work for CP1250 |
Date: | Mon, 6 Nov 2006 13:40:19 +0100 |
Am 06.11.2006 um 12:51 schrieb Kenichi Handa:
In article <address@hidden>, Peter Dyballa <address@hidden> writes:The problems with CP1250 and CP1251 are solved with this patch. No other failure could be found, except that there is just one difference, with and without the patch: a thai-tis620 encoded buffer (without NO BREAK SPACE) shows Thai glyphs, but when the same contents is reverted to iso-8859-11 (which is thai-tis620 with NO BREAK SPACE) only empty boxes are shown.Again, as I can't reproduce this, please send me the exact file (it is usually a good idea to post the exact file to reproduce a bug). By the way, the current implementation of thai-tis620 allows all bytes in 0xA1..0x7E, but iso-8859-11 allows 0xA0..0xDA,0xDF..0xFB. Some of emply boxes shown in thai-tis620 are shown in octal form when reverted to iso-8859-11. This is not a good behavior. But as fixing it is not trivial and it is anyway not that serious problem, I'd like to leave it as is. It is fixed in emacs-unicode-2.
I can see this in both GNU Emacsen 22.0.50 and 22.0.90. When it comes to loading in TIS620 encoding the TIS620 encoded file these lines are written into *Messages* buffer:
Loading view...done Loading thai-util... Loading mule-util...done Loading thai-util...done Loading tex-mode...doneIn the case of the ISO 8859-11 encoded only this line is added into *Messages* buffer:
Loading view...doneI launch both Emacsen with -Q. Then: C-x d <my tests dir> RET. Some cursor movements to position the cursor on the file. Then: C-x RET c tis620 RET v, or C-x RET c iso-8859-11 RET v.
These are my proper encoding files. The test files were generated by removing the first lines in vi(m) and saving under the same name in a "puristic" directory inside my test cases directory:
ISO 8859-10.txt
Description: Text document
thai-tis620.txt
Description: Text document
-- Greetings Pete"A designer knows he has arrived at perfection not when there is no longer anything to add, but when there is no longer anything to take away."
-- Antoine de Saint-Exupéry
[Prev in Thread] | Current Thread | [Next in Thread] |