On 09/10/08 02:04, bill lam wrote:
> Hi Tony,
> thank you for explanation!
> I should said I don't want (not cannot) to convert to utf8 because it
> is a legacy program.  It was written about 20 years ago, the last time
> I patched it was for the great y2k event.
>
> I checked it still displays as a "house" when editing using pe (a text
> editor from wordperfect) inside dos-box of winxp.
>

That "house" glyph might come from the ROM-BIOS firmware for your 
display, or from whatever codepage Windows is using. It might (or might 
not) depend on whether you are running that dos-box in full-screen or 
windowed mode, on the lines x columns mode if fullscreen, and on the 
font used if windowed. -- Yes, Dos consoles had 255 glyphs (including 
the space glyph; not sure how DBCS versions managed their console I/O) 
which could be displayed when you set the video memory to the proper 
value. Vim doesn't have that low-level non-portable I/O.

About converting to UTF-8: the idea is not to convert the disk file to 
UTF-8 on disk (the disk file remains in Big5, unchanged except for any 
edits you might do), but to edit the Big5 file using UTF-8 Vim. Vim is 
clever enough to do that if it is compiled with +multi_byte and +iconv, 
and you tell it that the file is Big5.

Another possibility would be to set 'encoding' to Big5 BUT:
- not sure if it would work in the GTK2 GUI, which works best in UTF-8
- you would have problems when trying to edit any files in the same 
session except those in ASCII or Traditional Chinese (and even then, 
some Traditional Chinese characters, for instance some proper names, 
cannot be represented in Big5).

Anyway that DELETE character would give you the same problems, since 
(when running on Linux) Big5 is still assumed to be paired with ASCII 
single-byte characters, and in ASCII, 0x7F is the DELETE or DEL control 
character.


Best regards,
Tony.
-- 
hundred-and-one symptoms of being an internet addict:
204. You're being audited because you mailed your tax return to the IRC.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to