X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: Doug Kaufman Newsgroups: comp.os.msdos.djgpp Subject: Re: GNU Emacs DOS (DJGPP) port converts upper-ASCII characters to ASCII 127 Date: 9 Feb 2002 06:34:02 GMT Organization: a2i network Lines: 36 Message-ID: References: <563-Thu07Feb2002214445+0200-eliz AT is DOT elta DOT co DOT il> NNTP-Posting-Host: yellow.rahul.net NNTP-Posting-User: dkaufman X-Newsreader: NN version 6.5.6 (NOV) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Eli Zaretskii" writes: >Alternatively, if you don't care about any language but German, invoke >Emacs with the --unibyte switch. This will leave the 8-bit characters >intact, but they probably won't be displayed correctly (since the DOS >terminal cannot display Latin-1 characters encoded in 8859-1). > ... >written. It only matters for how text is _displayed_. And you should >never set it to latin-1, since the DOS terminal can only display one >character set--the one defined by the currently installed codepage. > ... >characters encoded in some encoding that is totally alien to DOS. If >you tell Emacs it's a Latin-1 file, you will see that file correctly >displayed, even though DOS doesn't understand Latin-1, and even though >DOS terminals cannot display Latin-1 characters (some of the Latin-1 >glyphs are simply missing from the video ROM, others are in wrong >places). What other editor can pull that trick? I believe that the comments about the ability of the DOS terminal to display Latin-1 or Cyrillic are overstated. Certainly with a default setup, this is true, but it is easy to add Latin-1 (codepage 819) or Cyrillic (codepage 915 = ISO 8859-5) support with the free iso codepage package from Kosta Kostis. This requires a VGA or SVGA display and the use of the DISPLAY.SYS driver. With this in place the codepage can be changed on the fly for any program that allows shelling out to DOS. See: "http://www.kostis.net/freeware/isocp101.zip" or "http://ftp.uni-erlangen.de/pub/doc/ISO/charsets/isocp101.zip" Doug -- Doug Kaufman Internet: dkaufman AT rahul DOT net